PDA

View Full Version : Ext.Application vs Ext.setup



jrboddie
29 Jun 2011, 11:42 AM
The 'Hello World' example uses Ext.Application to wrap the content after 'launch'. The Getting Started GeoTweets example uses Ext.setup and an onReady event.

What is the correct way? If I use Ext.Application, how to achieve the functions that Ext.setup provides, e.g. startup screens, icons, etc. Why use Ext.Application??

adamszatrowski
29 Jun 2011, 12:13 PM
you should Ext.Application for applications that use the MVC pattern. In addition to waiting for the DOM to be ready, it also sets up URL routing and various other helpers specific to MVC apps.

If you're not using the MVC pattern, you can stick with Ext.setup.