扫码关注官方订阅号
我在配置文件中同时开启了smarty和layout.但是我的模板无法正常渲染,页面上只有控制器display的内容。而当我关闭了smarty之后渲染正常,请问模板布局和smarty是否无法一起使用,还是我的方法有问题!!?
走同样的路,发现不同的人生
thinkphp自带的模板引擎才能用layoutsmarty有对应的include解决方案具体参考:http://www.smarty.net/docs/zh_CN/language.function.include.tpl
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
thinkphp自带的模板引擎才能用layout
smarty有对应的include解决方案
具体参考:http://www.smarty.net/docs/zh_CN/language.function.include.tpl