PDA

View Full Version : Sencha Touch & ExtJS profiles for desktop and mobile in one web project/vhost?



chaddjohnson
11 Jan 2013, 1:01 PM
I'm creating a web application with desktop and mobile versions using ExtJS and Sencha Touch.
ExtJS 4 and Sencha Touch 2 use an MVC approach, and Sencha Touch 2 incorporates "profiles" for different devices (iPhone, tablet, etc.).
ExtJs 4, however, has no notion of profiles. Is it realistically feasible to for dependencies for desktop, iPhone, and iPad versions of the app to live under one vhost, in the same app directory hierarchy?
Or, is it generally more acceptable to use different vhosts for desktop (app.com) and mobile sites (m.app.com) when dealing with the Sencha frameworks?

mitchellsimoens
13 Jan 2013, 8:45 AM
The best way to do it now is with a simple server side code to detect which app to use.