title: How to get data using proxy in ExtJS 6
body: <p>I'm completely new to Extjs. I'm trying to get data using proxy like in <a href="http://docs.sencha.com/extjs/6.2.0/modern/Ext.data.proxy.Ajax.html" rel="nofollow noreferrer">this guide</a> but I still don't understand it. The code is written like this.</p>
  
  <pre><code>Ext.define('User', {
    extend: 'Ext.data.Model',
    fields: ['id', 'name', 'email']
  });
  //The Store contains the AjaxProxy as an inline configuration
  var store = Ext.create('Ext.data.Store', {
     model: 'User',
     proxy: {
        type: 'ajax',
        url : 'users.json'
     }
  });
  store.load();
  </code></pre>
  
  <p>My question is very basic. Is this code written in the same file, in my case, <code>(root)/app/view/user.js</code> or should I put it in different file? And how to do it if it is in separated file. Fyi, I got error when I put it in the same file.</p>