2009年1月28日星期三

[fw-mvc] Best way to access global view variable from partialLoop?

Hi all,

What is the preferred way to access a global view variable from partialLoop?
I can pass parameters as named keys in an array to any partial script, but
there is no way to do that, as far as I can see, to any partialLoop. I can
only pass an array. Should I really include the global variable in the
array? That doesn't seem appropriate from a structural point of view.

Use case: a user is logged in or not. My base view script knows that, any
partials called from that base know that, but what is the best way to pass
that knowledge to a partialLoop?

Sorry if I overlook something simple here...

GJ
--
View this message in context: http://www.nabble.com/Best-way-to-access-global-view-variable-from-partialLoop--tp21722277p21722277.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: