とパン粉をしている使用して: 私私のlayout.phtmlは私が持っている:Zendのフレームワーク:私はいくつかのトラブルがカスタマイズされたブレッドクラムを作る
$container = new Zend_Navigation();
$this->navigation($container);
$container->addPage(
array(
'label' => 'Dashboard',
'module' => 'default',
'controller' => 'dashboard',
'action' => 'index',
'pages' =>
array(
array(
'label' => 'Create Order',
'module' => 'default',
'controller' => 'createorder',
'action' => 'index'
),
array(
'label' => 'Query',
'module' => 'default',
'controller' => 'query',
'action' => 'index',
'pages' => array(
array(
'label' => 'View Order',
'module' => 'default',
'controller' => 'order',
'action' => 'vieworder'
)
)
),
array(
'label' => 'Administration',
'module' => 'default',
'controller' => 'admin',
'action' => 'index',
'pages' =>
array(
array(
'label' => 'News and Announcements',
'module' => 'default',
'controller' => 'admin',
'action' => 'addnews',
'pages' => array(
array(
'label' => 'Edit News and Announcements',
'module' => 'default',
'controller' => 'admin',
'action' => 'editnews'
)
)
)
)
)
)
)
);
次の行は次のとおりです。
echo $this->navigation()->breadcrumbs()->setPartial(array('BreadCrumb.phtml','default'));
ブレッドクラムを。 phtmlはうまくいきますが、BreadCrumb.phtmlにul-liメニューを作る方法がわかりません。私が実際に行っているナビゲーションをどのように取得するのですか? ご協力いただきありがとうございます。 Andrea
は、私はに何もない場合でも、それを動作させるために、少し私のコードを改善し、問題ありませ – cwhisperer
...非常にすぐにテストを行い、あなたのフィードバックを与える、返信をお願いしますレンダリング。私に教えてください! – Liyali
これはgoddですブレッドクラムの表示例、@リヤリ!どこで見つけたの?これは、公式のドキュメントの例に追加する必要があります - 現在のものは "貧しい"です:http://framework.zend.com/manual/2.3/en/modules/zend.navigation.view.helper.breadcrumbs.html#rendering -using-a-partial-view-script – webDEVILopers