我得到这个错误
尖叫:错误抑制忽略致命错误:Uncaught ->PHP5要求你使用call_construct()而不是Smarty () <——扔进C: tshirtshop lib smarty sysplugins smarty_internal_templatebase.php第855行
每当我尝试加载"http://localhost/tshrtshop"
我想,你可以用你的自定义类扩展Smarty。
如果你只是简单的创建对象,你应该这样做:
$view = new Smarty();
如果您需要扩展,请拨打:
parent::__construct();
和
parent::Smarty();