0
我使用的fetch()方法來存儲模板和內另一個顯示爲這樣:fetch()方法無法輸出 - Smarty的
$this->mySmarty->assign('template',$this->fetch('template.tpl'));
$this->display('mypage.html');
其中mySmarty被實例化作爲Smarty類。我在mypage.html中調用{$ template}。
頁面「mypage.html」顯示正確,但{$ template}變量輸出爲0.它怎麼可能? (知道我正確設置權限)