title: Sencha Touch 2 MVC - How to pass/cache data between views and controllers
body: <p>There are multiple things unclear to me how data is best handled in Sencha Touch.</p>
  
  <p>1 I'm loading data in a controller action from a Rest Store. </p>
  
  <pre><code>    Ext.ModelManager.getModel('MyApp.model.CheckIn').load(barcode, {
          synchronous: true,
          success: function(model) {              
              that.checkInConfirm({model:model});
          }
      });
  </code></pre>
  
  <p>Then the view gets updated by calling the corresponding setters of some fields e.g.
  <code>this.getNickname().setValue(options.model.data.nickname);</code>
  After this a view is activated with <code>this.getMain().setActiveItem(myView);</code> 
  Is this the best way passing data from a controller to the view?</p>
  
  <p>2 After manipulating data in the view another controller action is triggered by tapping a button. I then want to update the data loaded in 1. But at this moment my data I loaded before is lost. Do I have to load it again from the server or is there another way to preserve the previously loaded data?</p>