Issues

ZF-8440: ZendX_JQuery View Helpers error in doc

Description

On http://framework.zend.com/manual/en/…

$view->jQuery ->setRenderMode(ZendX_JQuery::RENDER_JAVASCRIPT | ZendX_JQuery::RENDER_JQUERY_ON_LOAD);

should be replaced with

$view->jQuery() ->setRenderMode(ZendX_JQuery::RENDER_JAVASCRIPT | ZendX_JQuery::RENDER_JQUERY_ON_LOAD);

Comments

On http://framework.zend.com/manual/en/…

Example 65.3. Showing jQuery Form View Helper Usage

<?= $this->datePicker("startDate", '', array('defaultDate' => '+7', 'minDate' => '+7', 'onClose' => 'myJsonFuncCechkingValidity')); ?>

Javascript callbacks should be under Zend_Json_Expr:

<?= $this->datePicker("startDate", '', array('defaultDate' => '+7', 'minDate' => '+7', 'onClose' => new Zend_Json_Expr('myJsonFuncCechkingValidity'))); ?>

Please fix this as well.

Fixed