|
Posted by Matt Warden on 06/02/05 05:29
List,
I have been looking through the documentation, but cannot figure this
out. I wish to retreive a array set using assign() from PHP.
Basically, I want to do this because there are a complicated set of
conditions that sets this template variable and I would also like to
assign the count of this array (I could do it in Smarty itself, but I
woudl rather not). Rather than adding an assign() to every condition
(which actually wouldn't solve the problem anyway, but that's to
complicated to explain why), I would rather just do something like
this:
$smarty->assign('myArrayCount', count($smarty->get('myArrayCount')));
There *has* to be a way to do this, but I just can't find it (is there
a traditional phpdoc somewhere? I find that easier to answer these
kinds of questions than manual-style documentation).
Thanks,
--
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
Navigation:
[Reply to this message]
|