I want to make customer route for url which have parameters.
<a href='javascript:void(0)' onclick="window.location='<?php echo
$this->url(array('module' => 'courses', 'controller' => 'course', 'action' => 'add',
'std_id' => $entry['std_id']), 'coursesadd', TRUE); ?>'">add course</a>
and here what I make routing
$route = new Zend_Controller_Router_Route('courses/std_id/:std_id',
array('module' => 'courses', 'controller' => 'course', 'action' => 'add'));
$routesArray = array('coursesadd' => $route );
$router->addRoutes($routesArray);
But It doesn't route correctly!
/course/std_id/5what happens? I will say that when using theurl()helper you either have the module/controller/action as key pairs or you have a name for the route. so$this->url(array('std_id' => $entry['std_id']), 'courseadd')would be more correct.$entry['std_id']is being set correctly. you may need theTRUEswitch in the Url helper. Url Helper may help explain.