Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-06-2008, 07:13 AM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default Where do you do the data validation?

Hi,

I am trying to figure out a good architecture concerning data validation in reused components (e.g. you can add an register an end user via HTML-Form in the admin backend, html-form in some end user front end, webservice and mobile interface). The aim is to define validation rules and control the incoming data stream only once (probably as near to the business logic as possible).

Has anybody figured out a good way to do this with ZF? Probably one would use Zend Validate in the model classes and pass back messages to the SOAP/HTML-Views. I am yet not sure how this concept can interact with Zend Forms, how can I pass the validation messages to Zend Forms properly.

I am not using Zend MVC, but any best practise based on Zend MVC is interesting as well...

Dorthe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:44 AM.