View Full Version : Problem with the MVC example application

2 May 2012, 2:12 AM
Hi to all!
I'm trying to learn EXTJS, started to read all the guides
I'm now at the MVC Application tutorial ( http://dev.sencha.com/deploy/ext-4.1.0-gpl/docs/index.html#/guide/application_architecture) and got this problem

After adding this part of code to my app.js file

controllers: [ 'Users' ],
I got this error on my firefox error console
"Errore: requires.push is not a function
File sorgente: http://localhost/extjs/src/app/Application.js?_dc=1335953489095
Riga: 160"

I rally don't know what to do now...

2 May 2012, 3:07 AM
Solved adding this line

requires : ['AM.controller.Users'],

before this

controllers: [

I should really be added to the tutorial or someone will go mad trying to go out of that

18 May 2012, 12:34 AM
The first three lines of my 'app.js' now look like this:

requires: ['Ext.container.Viewport', 'AM.controller.Users'],
name: 'AM',

and I can now see what the tutorial says I should see...