0
Zend導航會跳過我的標籤內容。這是我的代碼;在Zend Framework 2導航中,我如何在標籤中呈現HTML內容?
// config
'navigation' => array(
'default' => array(
array(
'label' => 'Home',
'route' => 'home',
),
array(
'label' => '<i class="fa fa-database"></i> Assets',
'route' => 'assets',
'pages' => array(
array(
'label' => 'Browse',
'route' => 'assets/default',
'controller' => 'index',
'action' => 'index',
),
array(
'label' => 'Detail',
'route' => 'assets/default',
'controller' => 'index',
'action' => 'host',
),
),
),
),
),
// in view script
<?php echo $this->navigation('navigation')->menu()
->setMinDepth(0)
->setMaxDepth(0)
->setUlClass('nav-side');?>
有一個解決方案here,但它不起作用。我懷疑它可能是Zend Framework 1.