I have a page with this structure.
{user_tagA}
some html tags...
{user_tagB}
{user_tagC}
The user_tagA connects to another database, makes some queries and creates a 3D array.
I would like to use the 3D array in user_tagB, and user_tagC
I read some posts about creating a smarty variable with $smarty->assign('varname',$Array3D').
I managed to do that but then I don't know how to get the smarty varname from the other user_tags.
thanks in advanve.
passing php array between diferent user tags
-
- Forum Members
- Posts: 10
- Joined: Thu May 04, 2006 3:17 pm
Re: passing php array between diferent user tags
Then do {user_tagB var="$varname"}
It is all laid out in the documentation, look at where it talks about passing parameters.
http://wiki.cmsmadesimple.org/index.php ... fined_Tags
It is all laid out in the documentation, look at where it talks about passing parameters.
http://wiki.cmsmadesimple.org/index.php ... fined_Tags
-
- Forum Members
- Posts: 10
- Joined: Thu May 04, 2006 3:17 pm
Re: passing php array between diferent user tags
Thanks a lot!
It's working great!
It's working great!
Re: passing php array between diferent user tags
Please add [solved] to the first subject line...
He says for the 100,001 time...
He says for the 100,001 time...