$this->assign(); 與 $this->display(); PHP

4個字,渲染模板。php $this->assign(); 把數組打出來。html $this->display('index.html');把打出來的數據放在index.html這個模板上thinkphp Display用法:數組 $this->display();佈局 就能夠輸出模板,根據前面的模板定義規則,由於系統會按照默認規則自動定位模板文件,因此一般display方法無需帶任何參數便可輸
相關文章
相關標籤/搜索