I have a problem using my url view helper. I have defined custom routes like so:
; Index
routes.domain.type = 'Zend_Controller_Router_Route_Static'
routes.domain.route = '/'
routes.domain.defaults.controller = index
routes.domain.defaults.action = index
Everything works fine with the custom url's but I cannot assemble normal none. I tried to add a link using the following code from the view:
$this->url(array('controller' => 'search', 'action' => 'index');
The problem is that when I use this code in my index page of index controller, the returned url is the url of the current controller/action, and not the one I need.