Hej,

Tak sobie eksperymentuje z ZendX_JQuery. Chcialem podpiac go pod bierzacy projekt ale caly czas dostaje wiadomosc ,ze

  1. 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

  1. autoloaderNamespaces[]="ZendX"
  2. resources.view.helperPath.ZendX_JQuery_View_Helper = APPLICATION_PATH "/../library/ZendX/JQuery/View/Helper"
  3. pluginPaths.ZendX_Application_Resource = APPLICATION_PATH "/../library/ZendX/Application/Resource"


I przy wyolaniu w layout.phtml

  1. <head>echo $this->jQuery();</head>


dostaje ww. blad.


zmiana w bootstrapie i dziala. Nie rozumiem dlaczego nie dzialalo przez application.ini

  1. protected function _initBootstrap(){
  2.  
  3. $this->bootstrap('layout');
  4. $layout = $this->getResource('layout');
  5. $view = $layout->getView();
  6. $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
  7. }