My application is being built in a subdirectory of my local server, that looks something like this:
http://localhost/application/
The problem is that when I set the form action to "/form/save", the form routes to "localhost/form/save", which doesn't exist.
If I set the form action to "/application/form/save", I get an error, because Zend uses the URL input in its Front_Controller to pick the modules, Controllers, and Actions to use for requests.
Is there a simple way to have the base_url parsed out of requests? It works on everything else except for forms for some reason.
Another alternative would be having base_url added to all the form actions so your application can work in different environments, and then having it parsed out when the action is received by the controller.
Is there a simple way to set a variable to do something like this, already built into Zend? If not, what's a solution?
I can't seem to find anything addressing this issue anywhere.