|
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 |
mdvz0r Smarty n00b
Joined: 13 Dec 2004 Posts: 1
|
Posted: Mon Dec 13, 2004 2:51 pm Post subject: get assigned values in php |
|
|
for example:
i've got 2 classes. In the first i do this: $smarty->assign('test', 'hi');
then i then i open the new class with: require('class2.php');
and: $class2 = new class2;
followed by: $class2->giveValue($smarty);
In the function giveValue, i need the value that i assigned in the first line..
My question: Is this possible? How can i do this?
Thx. |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
|
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
|