title: Get store in a ViewController
body: <p>Is it possible to retrieve a store from within a <code>ViewController</code>?
  I'm trying to dynamicaly populate a toolbar with buttons from a store, but I'm not sure how to access the store from the controller.
  Any hints appreciated.
  My Extjs version is 5.1.</p>
  
  <p><strong>View:</strong></p>
  
  <pre><code>Ext.define('EurocampingsCMS.view.Foo', {
      extend: 'Ext.toolbar.Toolbar',
      alias: 'widget.foo',
      requires: [
          'EurocampingsCMS.controller.Foo'
      ],
      controller: 'foo',
  });
  </code></pre>
  
  <p><strong>ViewController:</strong></p>
  
  <pre><code>Ext.define('MyApp.controller.Foo', {
      extend: 'Ext.app.ViewController',
      alias: 'controller.foo',
  
      control: {
          '#': {
              beforerender: 'onBeforeRender'
          }
      },
  
      onBeforeRender: function (toolbar, eOpts) {
  
          //How to get store here??
  
          store.each(function (record) {
              toolbar.add({
                  xtype: 'button',
                  itemId: record.get('localeId'),
                  text: record.get('label')
              });
          });
      }
  });
  </code></pre>