PDA

View Full Version : Problem with the MVC example application



Riccardo_Coletta
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...

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


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

before this


controllers: [
'Users'
],


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

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

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

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