rejestruje go przez:
Kod
$frontController->registerPlugin(new Zend_Controller_Plugin_Texts());
chcialbym aby pluginy znajdowaly sie w katalogu aplication/controllers/plugins. Moj inlude wyglada tak:
Kod
set_include_path('.' . PATH_SEPARATOR . './_cms/library'
. PATH_SEPARATOR . './_cms/application/models/'
. PATH_SEPARATOR . './application/controllers/plugins/'
. PATH_SEPARATOR . get_include_path());
. PATH_SEPARATOR . './_cms/application/models/'
. PATH_SEPARATOR . './application/controllers/plugins/'
. PATH_SEPARATOR . get_include_path());
i probuje go zarejestrowac tak:
Kod
$frontController->registerPlugin(new Texts());
a oto moj error
Kod
<b>Catchable fatal error</b>: Argument 1 passed to Zend_Controller_Front::registerPlugin() must be an instance of Zend_Controller_Plugin_Abstract, instance of Texts given, called in ........./index.php on line 30 and defined in <b>......./library/Zend/Controller/Front.php</b> on line <b>699</b>
zendem zajmuje sie od niedawna wiec prosze o wyrozumialosc