2011年2月10日星期四

[fw-mvc] (v1.7.2)

I am currently forced to use zend framework 1.7.2

I have a problem with the partial function

$this->partial('template.html', array('arg1' => 'value1'));

This kind of does what i want as the variables that are available to the
parent template are not in the partial template

I know that $this->render('template.html'); allows the variables to be
exposed to the template

but what about if i want the variables to be exposed to my partial template
AND need parameters to be passed in? Did they actually not put something
like this in?

yeap i know the partial() method is meant to give a clean variable scope and
blah blah blah, so if thats the case, how do I do what im asking?
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/v1-7-2-tp3299188p3299188.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: