Código PHP:
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
protected function _initAutoLoad() {
$modelLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH . ''));
$this->_acl = new Model_LibreriaAcl();
$fc = Zend_Controller_Front::getInstance();
$fc->registerPlugin(new Plugin_VerificarAcceso($this->_acl));
//$fc->registerPlugin(new Plugin_FlashRenderer());
return $modelLoader;
}
protected function _initPlugins() {
$this->bootstrap('frontController');
$plugin = new Plugin_VariosLayout();
$this->frontController->registerPlugin($plugin);
$this->bootstrap('frontController');
$front = $this->getResource('frontController');
$front->registerPlugin(new Plugin_FlashRenderer());
}
function _initViewHelpers() {
$this->bootstrap('view');
$view = $this->getResource('view');
$view->addHelperPath('Carlos/View/Helper/', 'Carlos_View_Helper');
}
}
resources.view.helperPath.ZendX_JQuery_View_Helper = "ZendX/JQuery/View/Helper/"
pero me sigue dando error:
Fatal error: Call to a member function jQuery() on a non-object in C:\xampp\htdocs\siscavj1\library\carlos\view\helpe r\DisplayFlashMessages.php on line 71
y esa linea corresponde a lo siguiente:
Código PHP:
$jQuery = $this->view->jQuery();