|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
marwan Smarty n00b
Joined: 09 Jul 2014 Posts: 2
|
Posted: Wed Jul 09, 2014 8:55 am Post subject: include php |
|
|
hi all
i'm new in smarty and i want to include php file in template page
can some one help me ? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Jul 09, 2014 4:31 pm Post subject: |
|
|
Smarty 2 you can use the {include_php ...} function.
Smarty 3 out of the box does not support such a thing, and that is not usually something wanted in a template (ie. defeats the purpose). However if you really want to, you can use the SmartyBC wrapper, then use the {include_php ...} function.
http://www.smarty.net/docs/en/language.function.include.php.tpl |
|
Back to top |
|
marwan Smarty n00b
Joined: 09 Jul 2014 Posts: 2
|
Posted: Thu Jul 10, 2014 7:59 am Post subject: |
|
|
i use smarty 3 how i can use the SmartyBC wrapper and where |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Jul 14, 2014 8:49 pm Post subject: |
|
|
You should not want no such thing. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|