[英]Include php script in smarty template
Hello I have this script to include in smarty 您好,我有此脚本要包含在smarty中
http://codecanyon.net/item/viral-lock-php-like-google1-or-tweet-to-unlock/1632879
How to do it easily? 如何轻松做到?
I have tried this: 我已经试过了:
{php}
// inclusion directe d'un script PHP depuis le template.
include('/viral-lock.class.php');
include('/example.php');
{/php}
你可以试试看
{include file="file.php"}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.