Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

smarty and PHP

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
botX
Smarty n00b


Joined: 15 Jun 2017
Posts: 1

PostPosted: Thu Jun 15, 2017 10:49 am    Post subject: smarty and PHP Reply with quote

Hello guys,

I have some problem with smarty,

I want to assign a PHP function to my tpl but when a decide to create a variable which call my function this automatically display the result of the function on my page.

For example :

I have a php function called : tab() on my index.php,
tab() have to display some images on my page
when I call my function tab() in index.php , It automatically appear on the top of my index page and I want to display in a specific place in my page with my tpl.


How can i do ?

Please help me,
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Jun 15, 2017 9:40 pm    Post subject: Reply with quote

Did you read documentation?
http://www.smarty.net/docs/en/plugins.tpl
http://www.smarty.net/docs/en/api.register.plugin.tpl#idp43432896
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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