PDA

View Full Version : Create controller in Ext.example.Calendar



mkaw
7 Jun 2012, 12:58 AM
I want create controller in Ext.calendar.App, but when I in constructor of this class call :


Ext.create('Ext.calendar.form.field.MyController')
>TypeError: Cannot call method 'getModel' of undefined

Ext.calendar.App is not a Ext.application() so how can i create controller?

mitchellsimoens
11 Jun 2012, 6:54 AM
You won't be able to if it's not an MVC app. You will need to recreate the app in MVC.