OK,
I down graded to 1.9.7 and got the same error.
Going back to 1.10.0 I added some code into my *view* (.phtml) file:
<?php
// $this->addHelperPath("ZendX/JQuery/View/Helper",
"ZendX_JQuery_View_Helper");
ZendX_JQuery::enableView($this);
$this->jQuery()->enable();
?>
<?php $this->jQuery()->onLoadCaptureStart(); ?>
alert(1);
<?php $this->jQuery()->onLoadCaptureEnd(); ?>
which made things work.
When I remove the lines:
ZendX_JQuery::enableView($this);
$this->jQuery()->enable();
it fails again. This is my bootstrap init:
protected function _initViewHelpers()
{
$this->bootstrap('layout');
$layout = $this->getResource('layout');
$view = $layout->getView();
$view->doctype('XHTML1_STRICT');
$view->headTitle('xxx')->setSeparator(' - ');
//$view = new Zend_View();
$view->addHelperPath('ZendX/JQuery/View/Helper/',
'ZendX_JQuery_View_Helper');
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
$viewRenderer->setView($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
}
can anyone tell me why this is broken?
thanks,
monk.e.boy
--
View this message in context: http://n4.nabble.com/jquery-tp1471233p1471461.html
Sent from the Zend Framework mailing list archive at Nabble.com.