title: How give parameters to ExtJS controller from Ext.application
body: <p>Actually I'm creating my first ExtJS 4 MVC application. Following the application guide from documentation, I initialize my controller like that :</p>
  
  <pre><code>Ext.application({
  name: 'RateManagement',
  
  appFolder: 'softcom',
  
  context: null,
  
  constructor: function(context) {
      this.context = context;
  },
  
  launch: function() {
      Ext.create('Ext.Panel', {
          layout: 'fit',
          renderTo: 'rate-management',
          items: [
              {
                  xtype : 'ratelist'
              },
              {
                  xtype : 'rateedit'
              }
          ]
      });
  },
  
  controllers: [
                'Rate'
            ],
  </code></pre>
  
  <p>});</p>
  
  <p>But for future ajax call, my controller need to know the ajaxUrl which is coming from Liferay 6. In Liferay, I can get URL like that :</p>
  
  <pre><code>&lt;portlet:resourceURL var="listRates" escapeXml="false" id="listRates"&gt;&lt;/portlet:resourceURL&gt;
  &lt;script type="text/javascript"&gt;
      var rateContext = {
          contextPath: '&lt;%=request.getContextPath()%&gt;',
          listRatesUrl : '${listRates}',
          strings: strings
      };
  &lt;/script&gt;
  </code></pre>
  
  <p>My idea is to pass the var rateContext to my controller "Rate".</p>
  
  <p>Any Idea?
  Thank you!!</p>