225025 发表于 2018-12-12 11:39:02

php手动加载视图文件


[*]test.php:
http://i2.运维网.com/images/blog/201802/16/53b14e8e0935d293bca80aa0d5599a0f.png








[*]关于smarty模板:
smarty是在类中进行操作的,通过正则把 test.html 中的变量找出来,然后赋值给smarty中的变量,间接的给模板赋值



页: [1]
查看完整版本: php手动加载视图文件