2009年4月21日星期二

Re: [fw-mvc] Problems with dojo in partials

You mean I have to define View variables in my Controller!?

Is this because of security reason or only for correct MVC?

vince. wrote:
>
> Hey,
>
> While i was reading directly adding:
>
> $config = Zend_Registry::get('config');
> $baseUrl = Utils::getBaseUrl();
>
> into the layout script was not the right way, At least for me.
>
> Vince.
>
> On Tue, Apr 21, 2009 at 10:21 AM, Matthias W. <
> Matthias.Wangler@e-projecta.com> wrote:
>
>>
>> My structure is almost the same as in the quick start guide.
>>
>> I played a bit with my application and the results were as I expected...
>>
>>
>> I found two solutions for my problem:
>>
>> 1. remove the content of the body-Tags from the layout and paste it into
>> the
>> view. The disadvantage is that I have to paste it in every view or I have
>> to
>> make a global view to use in each action (
>> $this-&gt;_helper-&gt;viewRenderer('viewToUse'); ).
>>
>> 2. In the layout I have to declare the partials before echoing
>> $this-&gt;dojo(); -&gt; I have to separate the declaration of the
>> partials
>> from the output.
>>
>>
>> I don't think there's another way to solve this!??
>>
>>
>> vince. wrote:
>> >
>> > Hey,
>> >
>> > That's because your doing this all wrong. Please refer to the quick
>> start
>> > guide in the zend framework manual on understanding how to create the
>> > application structure.
>> >
>> > Vince.
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Problems-with-dojo-in-partials-tp23150088p23150486.html
>> Sent from the Zend MVC mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
> Zend Framework Certified Engineer.
>
>

--
View this message in context: http://www.nabble.com/Problems-with-dojo-in-partials-tp23150088p23150646.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: