title: How to get data from extjs 4 store
body: <p>Im stack with ext js 4 at the very beginning. Im trying to get the current user data when starting the application using store. But Im not getting any data from the store, even the store.count return 0.
  I found many description how to create store, but not how to access the data in it.<br> I managed to get the data using Ext ajax request, but i think would be better using store and i cant avoid them..</p>
  
  <p>My model:</p>
  
  <pre><code>Ext.define('MyApp.model.User', {
     extend: 'Ext.data.Model',
     fields: [ 
          'id',
          'username',
          'email'
      ]
  });
  </code></pre>
  
  <p>My store looks like:</p>
  
  <pre><code>Ext.define('MyApp.store.User.CurrentUser', {
      extend: 'Ext.data.Store',
      requires: 'MyApp.model.User',
      model: 'MyApp.model.User',
      autoLoad: true,
  
      proxy: {
          type: 'ajax',
          method: 'POST',
          url: Routing.generate('admin_profile'),
          reader: {
              type: 'json',
              root: 'user'
          }
      }
  });
  </code></pre>
  
  <p>The returned json:</p>
  
  <pre><code>{
      "success":true,
      "user":[{
          "id":1,
          "username":"r00t",
          "email":"root@root.root"
      }]
  }
  </code></pre>
  
  <p>And the application:</p>
  
  <pre><code>Ext.application({
      name: 'MyApp', 
      appFolder: '/bundles/myadmin/js/app',
      models: ['MyApp.model.User'],    
      stores: ['MyApp.store.User.CurrentUser'],
      //autoCreateViewport: true,
      launch: function() {
          var currentUser=Ext.create('MyApp.store.User.CurrentUser',{});
  
          /*
          Ext.Ajax.request({
              url : Routing.generate('admin_profile'),
              method: 'POST',
              success: function(resp) {
                  var options = Ext.decode(resp.responseText).user;
  
                  Ext.each(options, function(op) {
                      var user = Ext.create('MyApp.model.User',{id: op.id,username:op.username,email:op.email});
                      setUser(user);
                  }
              )}
          });
          */
  
          currentUser.load();
          alert(currentUser.count());
      }
  });
  </code></pre>