No issues....

After spending few hours on this, I am able to get out of the rid of
"Circular resource dependency detected" error. Found interesting thing,
might be useful for someone...

Don't use the resource name ending in a method name e.g. if you are trying
to initialize 'locale' resource in your bootstrap class, don't set your
method name to _initLocale(). In my practice code, I did the same
mistake....

protected function _initLocale(){
      $this->bootstrap('locale');
}

When _initLocale() function starts executing, the
Zend_Application_Bootstrap_BootstrapAbstract::_executeResource method has
the control and it checks the method name i.e 'locale'(_init) and set the
_started[$resourceName] flag to true. Now when execution comes to
$this->bootstrap('locale'); line, due to the _started[resourceName] flag set
to true, we get the "Circular resource dependency error".

Solution : as stated, take care to not end your method name matching to the
resource name.

i.e.  _initLocaleSetting() for example 
-- 
View this message in context: 
http://n4.nabble.com/resource-vs-pluginresource-tp648906p1695014.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to