title: Emberjs access controller value from a view
body: <p>There is a little something that bug me, I don't understand how this cannot works.</p>
  
  <p>I have a lambda controller like this :</p>
  
  <pre><code>App.LambdaController = Ember.ObjectController.extend({
      myVar: null,
  
      [...]
      // Some function here and here
      [...]
  });
  </code></pre>
  
  <p>And I have a view like that :</p>
  
  <pre><code>var MyRandomView = Em.View.extend({
      actions: {
          myAction : function(data) {
              this.set('controller.enquiry.myVar', data.something);
          }
      }
  });
  </code></pre>
  
  <p>And after that I tried to display this data with a bind-attr helper but its doesn't work.</p>
  
  <pre><code>&lt;img {{bind-attr src=App.LambdaController.myVar}}&gt;
  </code></pre>
  
  <p>I mean I don't get anything inside my src in the img tag.</p>
  
  <p>Am I doing this wrong ?</p>
  
  <p><a href="http://jsfiddle.net/NQKvy/841/" rel="nofollow">http://jsfiddle.net/NQKvy/841/</a></p>