title: Set a javascript variable in cake php and retrieve its value inside normal javascript
body: <p>How does one set the javascript variable declared in cake php, for example</p>
  
  <pre><code>echo $this-&gt;Js-&gt;set('jsvalue','test');
  </code></pre>
  
  <p>I need to get the <code>jsvalue</code> value inside normal javascript</p>
  
  <pre><code>&lt;script&gt;
      // This will need to get value as 'test'
      console.info(jsvalue);
  &lt;/script&gt;
  </code></pre>
  
  <p>I am currently using <a href="http://cakephp.org/" rel="nofollow noreferrer">cakephp</a> (1.3). If this feature is not supported in version 1.3, please show me how it is implemented in version 2.0.</p>