Tak sobie eksperymentuje z ZendX_JQuery. Chcialem podpiac go pod bierzacy projekt ale caly czas dostaje wiadomosc ,ze
.
Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'JQuery' was not found in the registry; used paths: Zend_View_Helper_: Zend/View/Helper/;./views\helpers/' in C:\xampp\htdocs\shop\vendor\Zend\Loader\P....C:\xampp\htdocs\shop\vendor\Zend\Layout.php(796) in C:\xampp\htdocs\shop\vendor\Zend\Controller\Plugin\Broker.php on line 336
Nie moglem wykombinowac jak to obejsc wiec utworzylem nowy projekt i wiekszosc bootstrapa + application.ini ctrl+c i ctrl+v i wszystko dziala jak nalezy. O co kaman??
Dodalem w application.ini
autoloaderNamespaces[]="ZendX" resources.view.helperPath.ZendX_JQuery_View_Helper = APPLICATION_PATH "/../library/ZendX/JQuery/View/Helper" pluginPaths.ZendX_Application_Resource = APPLICATION_PATH "/../library/ZendX/Application/Resource"
I przy wyolaniu w layout.phtml
<head>echo $this->jQuery();</head>
dostaje ww. blad.
zmiana w bootstrapie i dziala. Nie rozumiem dlaczego nie dzialalo przez application.ini
protected function _initBootstrap(){ $this->bootstrap('layout'); $layout = $this->getResource('layout'); $view = $layout->getView(); $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper'); }