我正在处理网站是一个烂摊子,需要找出smarty正在渲染的模板文件.
我可以调用smarty模板对象获取当前模板文件的方法吗?
例如
echo $tplObj->getTemplate(); // echos "shop/templates/cart.tpl"
php templates smarty
php ×1
smarty ×1
templates ×1