I believe the "textbook" way to do that using the new Ember builds will be:
App.SomeController = Ember.Controller.extend({
needs: 'application',
someFunction: function(){
var state = this.get('controllers.application.currentPath');
}
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…