-- [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote
(on Monday, 07 April 2008, 03:55 PM +0200):
> I have got a "User"-form with 15 fields in my project. My question is:
> Where should the validation been done? At the moment I do it in a
> private method in the Controller class. But even if I Use Zend
> Validate it is a lot of code for 15 fields ... But I guess the model
> is the wrong place for validation?! 

The model is a fine place for validation. You might want to take a look
at Zend_Form, however, as it has methods for simplifying creation of the
validation chain, as well as the filter chain, and can also simplify
your view scripts.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to