Keywords: Zend_Navigation, Route, Mvc, Zend_Navigation_Page_Mvc.
hi,
when i use route like that:
-------------------------------------------------
resources.router.routes.category.route = "/c/:id/:name"
resources.router.routes.category.defaults.controller=index
resources.router.routes.category.defaults.action=products
resources.router.routes.category.defaults.id=0
resources.router.routes.category.defaults.name=Categori
-------------------------------------------------
and navigation like that:
-------------------------------------------------
$page = new Zend_Navigation_Page_Mvc(array(
'id' => 'tree_' . $row->id,
'route' => 'category',
'label' => $row->name,
* //'controller' => 'index',
//'action' => 'products',*
'params' => array(
'id' => $row->id,
'name' => $row->name
)
));
-------------------------------------------------
at rendered menu there was not any active link. and breadcrumbs show noting.
when i uncomment *//'controller' => 'index', //'action' => 'products', *then
every thing was ok.
but it should work witouth controller and action info, because i gave route
name to Page object.
but i thing it is a bug from Zend/Navigation/Page/Mvc.php at *function
isActive()*.
when i convert (Module, Controller, Action)
-------------------------------------------------
$front->getDefault*(); (at line 144, 150 and 156)
-------------------------------------------------
to
-------------------------------------------------
$front->getRequest()->get*Name();
-------------------------------------------------
then there is not any problem also.
i'm using 1.10.0beta1 version.
PS. sorry for my english.
--
Elvin Şiriyev
http://siriyev.net