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

get assigned values in 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 -> Smarty Development
View previous topic :: View next topic  
Author Message
mdvz0r
Smarty n00b


Joined: 13 Dec 2004
Posts: 1

PostPosted: Mon Dec 13, 2004 2:51 pm    Post subject: get assigned values in php Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Mon Dec 13, 2004 3:54 pm    Post subject: Reply with quote

http://smarty.php.net/manual/en/api.get.template.vars.php
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 -> Smarty Development 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