2014-11-02 19 views
0

你好,我有這個腳本在智者包括在智者的模板PHP腳本

http://codecanyon.net/item/viral-lock-php-like-google1-or-tweet-to-unlock/1632879 

如何輕鬆完成包括哪些?

我已經試過這樣:

{php} 
// inclusion directe d'un script PHP depuis le template. 
include('/viral-lock.class.php'); 
include('/example.php'); 
{/php} 
+1

的,什麼是錯誤?它在純PHP中工作嗎?你怎麼了? – 2014-11-03 11:33:58

+1

提醒我永遠不要去你的網站上... – 2014-11-03 12:12:52

+0

試試這個: {include_php file ='/ path/to/load_nav.php'} 但是可以不推薦使用。取決於你的smarty的版本。請點擊此處:http://www.smarty.net/docsv2/en/language.function.include.php.tpl – StudioArena 2014-11-03 12:32:04

回答

0

你可以試試這個..

{include file="file.php"}