PDA

View Full Version : A question about validation (in a MVC architecture)



TouchOfDestiny
1 Apr 2012, 12:28 AM
Hi!

I'm developing a new site and I would like to use ExtJS 4 in a MVC architecture (described in the guides of this site). This site has a lot of dialogs (basically windows elements with forms) and controllers.

I would like to ask you where you would insert form validation of all those dialogs?

In the controllers? In the windows (views)? Consider that I call those dialogs from different controllers.

Thank you very much in advance for any advice!
David

jay@moduscreate.com
15 May 2012, 4:54 AM
IMHO, the validation should be done inside of the controllers if necessary. They Control the views.