|
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 |
vladimir1990 Smarty n00b
Joined: 29 Aug 2012 Posts: 1
|
Posted: Wed Aug 29, 2012 7:32 pm Post subject: Help needed |
|
|
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 |
|
|
|
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
|