title: Load mootools with require.js and passing server side php variables to java functions
body: <p>I was trying to load mootools with require.js. It works fine but now I need to pass server side variable in PHP to this class initialization.</p>
  
  <p>Here is the code where i want to pass sessionid from php variable, i need to pass many variables but in below example I have just mentioned one:</p>
  
  <pre class="lang-js prettyprint-override"><code>require(['ext/mootools/mootools-1.2.6-core-nc.js',
      'ext/mootools/mootools_more.js'
    ], function () {
      require.ready(function () {
        ajaxCart = new AjaxShoppingCart({
          sessionId: "&lt;?php echo $session_id;?&gt;",
        });
      });
  </code></pre>
  
  <p>so my query is how can I pass those variable to require framework which I can use in difference java functions listed after require.ready.</p>