Page 1 of 1

passing php array between diferent user tags

Posted: Mon Jul 27, 2009 4:05 pm
by antuanjoseff
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.

Re: passing php array between diferent user tags

Posted: Mon Jul 27, 2009 4:17 pm
by Jeff
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

Re: passing php array between diferent user tags

Posted: Tue Jul 28, 2009 7:51 am
by antuanjoseff
Thanks a lot!

It's working great!

Re: passing php array between diferent user tags

Posted: Tue Jul 28, 2009 7:14 pm
by Dr.CSS
Please add [solved] to the first subject line...

He says for the 100,001 time...