Note that there are some explanatory texts on larger screens.

plurals
  1. POcan't launch ZENDx for a specific view
    primarykey
    data
    text
    <p>I'm trying to enable and start using ZENDx in my application.</p> <p>I've gone through tons of link through google but still it remains obscure.</p> <p>I want to launch and use JQuery in specific views only. for ex. when I want to use auto-complete or datepicker of jQuery UI.</p> <p>I started with <a href="http://framework.zend.com/manual/1.8/en/zendx.jquery.view.html" rel="nofollow">http://framework.zend.com/manual/1.8/en/zendx.jquery.view.html</a></p> <p>First I added ZendX to my library. Then followed the manual - that didn't work at all.</p> <p>I added this code: <code>$view-&gt;addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");</code> to my controller, right before passing my $form.</p> <p>then added <code>&lt;?php $this-&gt;jQuery(); ?&gt;</code> into my Head Tag.</p> <p>then, for testing purposes I pasted the code given in the manual into my view:</p> <pre><code>&lt;?php echo $this-&gt;ajaxLink("Show me something", "/hello/world", array('update' =&gt; '#content')); ?&gt; &lt;div id="content"&gt;&lt;/div&gt; &lt;form method="post" action="/hello/world"&gt; Pick your Date: &lt;?php echo $this-&gt;datePicker("dp1", '', array('defaultDate' =&gt; date('Y/m/d', time()))); ?&gt; &lt;input type="submit" value="Submit" /&gt; </code></pre> <p>P.S. please mention how to call specific version of jQuery and UI or just call them locally. </p> <p>There was a Bug in my code, after I published this question. This code above, works fine and it worked for me, my bad!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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