Hi everybody,
I tried to configure my ErrorHandler plugin in my application.ini file like
that:

resources.frontController.plugins.ErrorHandler['class'] =
"MyApp_Controller_Plugin_ErrorHandler"
resources.frontController.plugins.ErrorHandler['stackindex'] = "96"

resources.frontController.plugins.ErrorHandler.options.errorModule =
"OtherModule"
or
resources.frontController.plugins.ErrorHandler.errorModule = "OtherModule"
or
resources.frontController.plugins.ErrorHandler['errorModule'] =
"OtherModule"

(each didn't work)

So, the error handler class changes to
"MyApp_Controller_Plugin_ErrorHandler", its stackIndex changes to 96, but
the errorModule attribute is not setted.
When I explore the framework's code, I think that the
Zend_Application_Resource_Frontcontroller#init doens't pass the options when
instances the plugin:

line 118: $plugin = new $pluginClass();

So, i am right ?
There is another to do that? It is possible ?

Thanks ,


-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Plugins-Configuration-in-ini-file-tp3330329p3330329.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to