i put this code in bootstrap file
//product category url managment
$defaults = array('controller'=>'productcat' , 'action'=>'catinfo' );
$productRoute = new Zend_Controller_Router_Route('productcat/:id/:title', $defaults);
$router = $frontController->getRouter();
$router->addRoute("productcat", $productRoute);
and i put this code in one of phtml files (in layout)
<a href="<?php echo $this->url(array( "controller"=>"aboutus" , "action"=>"index")); ?>">about us</a>
but when i`m in a url like this :
http://quickstart.local/donyaye_fan_zend/public/
every things is ok.
if i go to url like this: http://quickstart.local/donyaye_fan_zend/public/productcat/1/sample
link for aboutus dont work and it show current page url in href!!!
what is the reason?!