0
我试图创建一个左侧菜单栏。我曾经在我的布局下面的代码文件Templates/Layout/admin.ctp
CakePHP 3.x边栏不显示任何内容
// Create the sidebar block.
$this->start('sidebar');
echo $this->fetch('sidebar');
echo $this->element('sidebar/left_menu');
$this->end();
但侧边栏没有在页面显示。左侧菜单边栏文件位于Templates/Element/Sidebar/left_menu.ctp
任何帮助将不胜感激。
请编辑您的问题的格式化结束后 - 截至目前也很难看。最好避免'提前致谢!因为它不添加任何有用的信息,只会增加噪音。 – Olga
你的'=$this-> fetch('sidebar')?>'? –
我编辑了这个问题。 @Inigo弗洛雷斯我已将它添加到我的脚本中。还是行不通。 – Babitha