title: ExtJS5 How to use ViewController and ViewModel without SenchaCmd
body: <h2>Question</h2>
  
  <p>I used to use extJs 4 with MVC, now I want to change to extjs 5 and add ViewModel and ViewController into it. But I have no privilege to install SenchaCmd to generate and compile the app as the guides says. I wonder if SenchaCmd is necessarily in ExtJs5, because when I add a ViewController for a view, there's error - Uncaught Error: [Ext.createByAlias] Unrecognized alias: controller.mainViewController.</p>
  
  <p>If there's no SenchaCmd but I want to add ViewController and ViewModel for my app, what should I do?</p>
  
  <h2>Code</h2>
  
  <h3>MyApp.view.main.MainView.js</h3>
  
  <pre class="lang-js prettyprint-override"><code>Ext.define('MyApp.view.main.MainView', {
      extend: 'Ext.tab.Panel',
      alias: 'widget.MainView',
  
      //  requires: ['main.MainViewModel'],
      controller: 'mainViewController',
      //    viewModel: {
      //        type: 'mainView'
      //    },
  
      tabPosition: 'left',
      tabRotation: 0,
  
      defaults: {
          textAlign: 'left',
          bodyPadding: 15
      },
  
      items: [{
          title: 'test',
          items: [{
              xtype: 'button',
              listeners: {
                  onClick: 'onTest'
              }
          }]
      }]
  });
  </code></pre>
  
  <h3>CaTools.view.main.MainViewController.js</h3>
  
  <pre class="lang-js prettyprint-override"><code>Ext.define('CaTools.view.main.MainViewController', {
      extend: 'Ext.app.ViewController',
      alias: 'controller.mainViewController',
  
      onTest: function() {
          console.log('test -- ');
      }
  });
  </code></pre>
  
  <h3>Error</h3>
  
  <blockquote>
    <p><code>Error - Uncaught Error: [Ext.createByAlias] Unrecognized alias: controller.mainViewController</code></p>
  </blockquote>
  
  <p>Many Thanks!!</p>