You are here: getting value assign()'d « Smarty Templates Posts « IT news, forums, messages
getting value assign()'d

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация