Hi Benjamin,
 
> Even if i think Zend_Application is a great component, i have some
> limitations with it.
> 
> e.g Navigation resource is "bootstrapped" before Router resource, which is
> not really convenient :)
> So, i have to create a init method into application bootstrap just to run
> Router bootstrap to ensure that routes are loaded before the navigation
> component.

If you do not set the priority yourself (ie by having an _initNavigation() 
method which calls $this->bootstrap('router')), the order is set by the 
application.ini.

In your case, the resources.navigation is on top of the resources.router. 
Switch those two and the resources will be bootstrapped in opposite order.

> How about adding a priority on application resources ?
> e.g :
> resources.router.priority = 0

The priority is not necessary, unless you need to have another resource 
bootstrapped before. And that's exactly where the function 
bootstrap('resource') is meant for.

Regards, Jurian
-- 
Jurian Sluiman
Soflomo - http://soflomo.com

Reply via email to