Hi!
Currently I'm experiencing problems with Jquery enabling
I have a bit different configuration and maybe it have influence on my problem.
The error is simple

:
Plugin by name 'JQuery' was not found in the registry
My application.ini is:
| Code: |
includePaths.library = APPLICATION_PATH "/../library"
includePaths.purifier = APPLICATION_PATH "/../library/HTMLPurifier/library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.defaultControllerName = "main"
resources.frontController.defaultAction = "index"
resources.frontController.defaultModule = "default"
resources.modules = ""
# Layout
resources.view[] = ""
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
# Views
resources.view.encoding = "UTF-8"
resources.view.basePath = APPLICATION_PATH "/views/"
resources.view.helperPath.Tinymce_View_Helper = APPLICATION_PATH "/../library/Tinymce/View/Helper"
resources.view.helperPath.Ig_View_Helper = APPLICATION_PATH "/../library/Ig/Form/"
|
And bootstrap looks:
| Code: |
protected function _initViewHelpers()
{
$view = new Zend_View();
$view->setEncoding('UTF-8');
$view->doctype('XHTML1_STRICT');
$view->headTitle('GM');
$view->env = APPLICATION_ENV;
$view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8')
->appendName('keywords', 'Gitaros meistrai');
$view->addHelperPath("Ig/View/Helper/","Ig_View_Helper_")
->addHelperPath("ZendX/JQuery/View/Helper/", "ZendX_JQuery_View_Helper")
->setHelperPath(APPLICATION_PATH.'/helpers', '');
ZendX_JQuery::enableView($view);
/*
$view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
$view->jQuery()->addStylesheet('/js/jquery/css/hot-sneaks/jquery-ui-1.7.2.custom.css')
->setLocalPath('/js/jquery/js/jquery-1.3.2.min.js')
->setUiLocalPath('/js/jquery/js/jquery-ui-1.7.2.custom.min.js');*/
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view);
$viewRenderer->setView($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
Zend_Layout::startMvc(
array(
'layout' => 'layout',
'layoutPath' => '/application/views/layouts',
'pluginClass' => 'ZFBlog_Layout_Controller_Plugin_Layout'
)
);
$view = Zend_Layout::getMvcInstance()->getView();
$this->bootstrap('layout');
$layout=$this->getResource('layout');
$config=new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation.xml', 'nav');
$navigation=new Zend_Navigation($config);
$view->navigation($navigation)->setAcl($this->_acl)->setRole(Zend_Registry::get('role'));
}
|
Any ideas?
Thank you!