Since I am attempting this to be as a guide for those like me, I would like to include the two ways I know of.
resources.router.routes.cat.route = "/browse/:catid/:name/"
resources.router.routes.cat.defaults.controller = index
resources.router.routes.cat.defaults.action = browse
Here What you do is,
resources.router.routes.XXX.route Define the name of the route in place of
name are the two paramters that will taken, when you pass the url is such way
/browse/1/pc 1 will be assinged to
pc to name
Remaining two line defines the default parameter from controller and action, from MVC
$front = Zend_Controller_Front::getInstance();
// Get Router
$router = $front -> getRouter();
$routeBrowse = new Zend_Controller_Router_Route(
'controller' => 'index',
'action' => 'index'
$router -> addRoute('browse', $routeBrowse);
I will avoid the explanation, since pretty much is same as before.
However, I am not sure which one is better that the other one. So, those who knows, update my answer.