If you want to consolidate a single parameter into the URL path, it is possible via Zend Rewrite.
For instance, you currently have mysite.com/users/edit/userid/1234 and would like to use mysite.com/users/edit/1234.
To do this, edit the bootstrap.php file and include the following code:
protected function _initRoutes() { $router = Zend_Controller_Front::getInstance()->getRouter(); $route = new Zend_Controller_Router_Route('users/edit/:userid',array('controller' =>; 'users','action' => 'edit')); $router->addRoute('usersedit',$route); return $router; }
In your users controller – editAction() method, you will now be able to access the $userid variable with the shorter URL (mysite.com/users/edit/1234)
(Very basic example)
$request = $this->getRequest(); $userid = $request->userid;