title: how to call the function in view file in cakephp?
body: <p>i want to call the javascript function in view file in input field, how can I do that?</p>
  
  <pre><code> &lt;script&gt;
    function new(){
    // code
   }
   &lt;/script&gt;
  
  &lt;?php echo $this-&gt;FormManager-&gt;input('search',array('label'=&gt;'Search'));?&gt;
  </code></pre>
  
  <p>I wan to call function in this input field, how can I do that?</p>
  
  <p>Any one can help? thanks in advance</p>