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