title: Accessing Controllers from normal Ember.Object class
body: <p>I have an ember object like :</p>
  
  <pre><code>App.Obj = Ember.Object.extend({});
  </code></pre>
  
  <p>and a controller :</p>
  
  <pre><code>App.myController = Ember.Controller.extend({});
  </code></pre>
  
  <p>The question is can I access <code>myController</code> from <code>App.Obj</code> object? If yes how?</p>
  
  <p>The scenario is:</p>
  
  <p>1) I have model that created like this:</p>
  
  <pre><code>OlapApp.Measure = Ember.Object.extend({});
  OlapApp.Measure.reopenClass({
  measure:Ember.A(),
  find:function(cubeUniqueName){
      var c = Ember.A();
      var xhr = $.ajax({
          type: 'POST',
          dataType: 'json',
          contentType: 'application/json',
          url: 'http://localhost:9095/service.asmx/getMeasures',
          data: '{"cubeUniqueName":"'+cubeUniqueName+'"}',
          success: function(response) {
              var data = JSON.parse(response.d);
              $.each(data,function(i,v) {
               c.pushObject(OlapApp.Measure.create(v));
              });
          }
      });
      return c;
  },
  findByUniqueName:function(un){
  
  }
  });
  </code></pre>
  
  <p>2) I have dropdown that when the select index of dropdown changed the setMeasure is called so I set the model for each controller:</p>
  
  <pre><code>OlapApp.CubeController = Ember.ArrayController.extend({
  needs:['application','measure','dimenssion'],
  content:[],
  selectedValue:'',//this is the buffer for the select
  realValue:'',//this is the real value
  setMeasure:function(name){
      this.get('controllers.measure').set('model',OlapApp.Measure.find(name));
         this.get('controllers.dimenssion').set('model',OlapApp.Dimenssions.find(name));
  },
  actions:{
      refreshCubes:function(){
          this.set('model','');
          this.set('model',OlapApp.Cubes.findAll());
  
      }
  }
  });
  </code></pre>
  
  <p>3) Now with this model I create a list of item. I want when user click at any of this item I send uniqueName of item to OlapApp.Measure.findByUniqueName() and in this method get the model and search in model to find correct record. At this time I have 2 problem I cant get model and I don't know how to search in model.
  I try to use you way and I have some problem </p>
  
  <ul>
  <li>I have ArrayController and I get and error when use Ember.ArrayController.create() </li>
  </ul>
  
  <p>If you ask your self why I'm using this way and not ember way you can find some information in this my <a href="https://stackoverflow.com/questions/18811343/maping-nested-json-to-ember-data-model">question</a></p>