Динамически создаю breadcrumbs-меню, типа ( journal >> title )
$sublabel = array(
array(
'label' => 'Journals',
'uri' => '/journals',
'action' => 'index',
'controller' => 'journal',
"module" => "default",
'class' => "journals",
'pages' => array (
array(
'label' => 'title',
'controller' => 'journal',
'action' => 'view-post',
'id' => 'journal_post',
)
)
));
$page = new Zend_Navigation($sublabel);
$page->addPages($sublabel);
$page->findById('journal_post')->setActive();
echo
$this->view->navigation()->breadcrumbs($page)->setMinDepth(0)->setSeparator('
›' . PHP_EOL);
Получаю ошибку
Fatal error: Zend_Controller_Router_Exception: name is not specified in
/var/www/gorp.tm.fm/gapdaemon/library/Zend/View/Helper/Navigation/HelperAbstract.php
on line 522
Все что мог перерыл, надежда осталась на Вас.
Дима
> О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫
>
> On 22 June 2011 11:13, DGorp<dig...@gmail.com> wrote:
>> О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫.
>>
>> О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ breadcrumbs-О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫ ( journal>> title )
>> $sublabel = array(
>> array(
>> 'label' => 'Journals',
>> 'uri' => '/journals',
>> 'action' => 'index',
>> 'controller' => 'journal',
>> "module" => "default",
>> 'class' => "journals",
>> 'pages' => array (
>> array(
>> 'label' => 'title',
>> 'controller' => 'journal',
>> 'action' => 'view-post',
>> 'id' => 'journal_post',
>> )
>> )
>> ));
>> $page = new Zend_Navigation($sublabel);
>> $page->addPages($sublabel);
>> $page->findById('journal_post')->setActive();
>> echo
>> $this->view->navigation()->breadcrumbs($page)->setMinDepth(0)->setSeparator('
>> ›' . PHP_EOL);
>>
>> О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫
>>
>> Fatal error: Zend_Controller_Router_Exception: name is not specified in
>> /var/www/gorp.tm.fm/gapdaemon/library/Zend/View/Helper/Navigation/HelperAbstract.php
>> on line 522
>>
>> О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫.
>> О©╫О©╫О©╫О©╫
>>