PDA

View Full Version : How to create One file for multiple stores?



msuresh
3 Sep 2012, 4:17 AM
Hi,

I am creating a page where I need to define multiple stores.
I am not interested to create single file for each store. I would like to combine all the store definitions into one single file and model definitions into another single file.

However when I call stores:['xxx','yyy'] it looks for js files related to the name.

What is the best solution for this problem?

Regards,
Suresh

tvanzoelen
3 Sep 2012, 4:44 AM
Put them in one file and load the file with a script tag.