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.
--
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.
Zend Framework Certified Engineer.
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->_helper->viewRenderer('viewToUse'); ).
2. In the layout I have to declare the partials before echoing
$this->dojo(); -> 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.
没有评论:
发表评论