View Full Version : Sharing Models between ExtJS 4 apps

27 May 2012, 4:39 AM
I have many apps in my ExtJS project. I have a model which should be available in every app. So I have to redefine it for each app. Is there any way to use this model for other apps? I tried to add the model by its full namespace. But it didn't work.
So, Do you have any idea?

27 May 2012, 3:13 PM
You should place your model in a common namespace and tell Ext.Loader the path to that namespace by using Ext.Loader.setPath(). It is the same as you use Ext framework classes which are outside of your applications.