PDA

View Full Version : Starting a new ASP.NET MVC 3 + Exjs 4 mvc app - some questions



fordprefect
29 Feb 2012, 9:40 AM
Hi there,

I'm starting a new project with MVC3 and Extjs 4 and I'm wondering if anyone could share any advice regarding how you setup your projects.

- What does your directory structure look like for your app files?
- Did you use mvc for the extjs side?
- Did you use a Ext.Direct library? If so which one?
- Any tips/tricks you'd like share that you found helpful in building your application?

Thanks in advance.

mitchellsimoens
29 Feb 2012, 12:08 PM
A base file structure would look like this:

/
--app/
----controller/
----model/
----store/
----view/
--app.js
--index.html

If you use MVC which I would recommend. You can nest other folders within your controller, model, store, view folders but your namespace will need to follow this:

MyApp.view.user.Login should be in the /app/view/user/Login.js file

fordprefect
1 Mar 2012, 8:20 AM
Thanks Mitchell, I will use that structure.