Q:

Call a function inside a controller from observer in Ember

I have a controller like this 
App.TestController = Ember.ArrayController.extend({
    navigation:[],
    somefunc:function(){
      //do something
    }
});

and have an observer for 
globalvars = Ember.Object.create({
    page : 1,
});

globalvars.addObserver('page', function() {
    this.get('controller.controllers.Test').somefunc();
});

the problem is that i can't call the function inside the controller.

A:

As i already mentioned in my comment, here a disclaimer: 

You should explain in more detail, what you are trying to accomplish.
  You are trying to access the controller in a strange way.

But here is an approach if you absolutely have to do it this way:
var App = Ember.Application.create({});
// put the global vars into the App object instead of polluting the global namespace
App.globalvars = Ember.Object.create({
    page : 1,
});

Instead of putting the observer in the globalVars object, i would declare the observer in the controller:
App.TestController = Ember.ArrayController.extend({
    navigation:[],
    somefunc:function(){
      //do something
    },
    globalVarsPageObserver : function(){
        this.somefunc();
    }.observes("App.globalvars.page")
});

