Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>One little <strong>gotcha</strong>:<br> You have to add the ZendX folder to your <strong>library</strong> directory - the one which also has your <strong>Zend</strong> directory.</p> <pre> [your/lib/path] | +-Zend | | | +-(the full thing) | +-ZendX | | | +-JQuery, Db, Console, ... </pre> <p>If you miss adding ZendX to your <strong>library</strong> directory, you get lots of errors messages like this: </p> <pre> <b>Fatal error</b>: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'JQuery' was not found in the registry; used paths: ZendX_JQuery_View_Helper_: ZendX/JQuery/View/Helper/ Zend_View_Helper_: Zend/View/Helper/: ..... </pre> <hr> <p>Another little <strong>gotcha</strong>:<br> In the code presented by Andrew above, note the important words highlighted: </p> <pre> Now add the jQuery view helper to your <b><i>layout</i></b> file: &lt;head&gt; &lt;? php echo $this->jQuery(); ?&gt; &lt;/head&gt; <b>To test</b> that you have everything working, add this line <b>to one of your <i>view scripts</i></b>: &lt;code&gt; Pick your Date: &lt;?php echo $this->datePicker("dp1", ..... &lt;/code&gt; </pre> <p>While <code>$this-&gt;jQuery()</code> must go in the <strong>layout</strong> file so that all pages get jquery functionality, the actual jQuery code must go to the <strong>view file</strong> itself - <code>application/views/scripts/yourcontroller/youraction.pthml</code> - <strong>it does not work in the layout with just this simple code</strong>. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload