Zend Framework getBaseUrl() returns nothing

Hi guys I am in a spot of bother with a zend app that i am working on. No need to say i am quite new with zf.

Thing is i have the following setup in my local apache serve:


<VirtualHost *:80>
    ServerAdmin postmaster@localhost
    DocumentRoot "D:/www/gepm/public"
    ServerName gepm.dev
    ServerAlias www.gepm.dev
    <Directory "D:/www/gepm/public">
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

such that

http://gepm.dev

takes me to my home page. I have a registration form setup and when one hits submit its supposed to save and redirect to

http://gepm.dev/groups/save

ie groups controller and save action.

When i check the table, the fields are all null except the date_created field that is generated with the now() function.

I set the form action like so

$this->setAction(Zend_Controller_Front::getInstance()->getBaseUrl().'/groups/save');

and the redirect after saving to the database like so

return $this->_helper->redirector('/groups/save');

when i his submit i get a 404 with the URL in the address bar as

http://gepm.dev/groups/%2Fgroups%2Fsave

. When i view the page source the form action is

action="/groups/save"

. From what i can tell the getBaseUrl returns nothing.

What is the right way of going about this guys