|
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 |
vignesh Smarty n00b
Joined: 16 Jul 2009 Posts: 1
|
Posted: Thu Jul 16, 2009 3:48 am Post subject: How Get A variable in side tpl file which is assigned in php |
|
|
Hi...
I did assign a variable in index.php
i am displayed the
header.tpl
index.tpl
footer.tpl
like $smarty->display(header.tpl); $smarty->display(index.tpl);$smarty->display(footer.tpl);
this TPL files are displayed in index.php
i am assign a variable in index.php
like $smarty->assign('my_var','This is a variable declear by vignesh');
i am writing php script inside the tpl file. like {php} echo $my_var; {/php}
But this not display value.
This is possible method... if it is wrong.. plz tell correct format for this value display...
Thank you, |
|
Back to top |
|
elpmis Smarty Elite
Joined: 07 Jun 2007 Posts: 321
|
|
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
|