Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Help needed

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
vladimir1990
Smarty n00b


Joined: 29 Aug 2012
Posts: 1

PostPosted: Wed Aug 29, 2012 7:32 pm    Post subject: Help needed Reply with quote

Hi I am sorry if this is in the wrong section I really need some small help. I am a beginner with smarty template.

So here is the problem, I have an index.php (with all the php code) and I have an index.tpl file with all the html stuff. But now because I am using ajax I have another php file that should output some data (data.php). The problem is that I don`t know how to select the template in the data.php file, all I know is on the index.php I have a function that displays the tpl ($Smarty->display($filename);) but I don`t want to display the template (again) in the data.php file I just want to assign some variables that need to show on index.tpl

I hope somebody understands my problem. Please help. Thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 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