 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
mesuutt Smarty Rookie
Joined: 10 Jan 2012 Posts: 10
|
Posted: Wed Jun 27, 2012 8:43 am Post subject: How to use include function in another custom function? |
|
|
Hi
I want to include a tpl file only one time on page even if tpl file called more times.I dont know that I can do the that with Smarty without write a new custom function.So I decide write a new custom include function for this.
Can I use include function in the custom include function ?
I want to use smarty include function in my the custom include function for compile given template.
How am I do this ?
| Code: | | {include_js file="script.users.tpl"} |
I know little english.I will be happy if you write sentences simple if possible |
|
| Back to top |
|
mesuutt Smarty Rookie
Joined: 10 Jan 2012 Posts: 10
|
Posted: Mon Jul 09, 2012 8:13 am Post subject: |
|
|
| "fetch function" of smarty is that what am I looking exactly. |
|
| 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
|