Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
How to use include function in another custom function?

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
mesuutt
Smarty Rookie


Joined: 10 Jan 2012
Posts: 10

PostPosted: Wed Jun 27, 2012 8:43 am    Post subject: How to use include function in another custom function? Reply with quote

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
View user's profile Send private message
mesuutt
Smarty Rookie


Joined: 10 Jan 2012
Posts: 10

PostPosted: Mon Jul 09, 2012 8:13 am    Post subject: Reply with quote

"fetch function" of smarty is that what am I looking exactly.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP