|
i have navigation in my module.config.php like below;
return array(
'navigation' => array(
'default' => array(
array(
'controller' => 'index',
'module'=>'default',
'action' => 'index',
'label' => 'Ana Sayfa',
'route' => '/',
'resource' => 'index',
'class' => 'anasayfa',
),
array(
'module'=>'default',
'controller' => 'konugoster',
'action' => 'index',
'label' => 'Konular',
'route' => '/konugoster',
'resource' => 'konugoster',
'class' => 'konular',
'pages' => array(
array(
'module'=>'default',
'controller' => 'konugoster',
'action' => 'index',
'label' => 'Konular',
'route' => '/konugoster',
'resource' => 'konu',
'privilege' => 'konu',
),
array(
'module'=>'default',
'controller' => 'konu',
'action' => 'index',
'label' => 'Konuları Düzenle',
'route' => '/konu/index',
'resource' => 'konu',
'privilege' => 'konu',
),
array(
'module'=>'default',
'controller' => 'konu',
'action' => 'add',
'label' => 'Konu Ekle',
'route' => '/konu/add',
'resource' => 'konu',
'privilege' => 'add',
),
),
),
)
)
i dont have any problem with rendering menu;
echo $this->navigation('navigation')->menu()->render();
but breadcrumbs isn't working. i don't hve any error. i think it returns empty and i couldn't find reason.
echo $this->navigation()->breadcrumbs()->setMinDepth(0)->render();
i have try the solutions which are in the form but i couldn'solve please help me?
|