![]() |
|
|||
|
Hi,
I need to have custom validation for a form. For example one field can be required or not depending on the values from other fields. Should I develop custom validators - but to be somehow connected to more field - or override is "isValid" form function? Thanks |
|
|||
|
make your own validator and pass to him fields you need..
dont hardcore that thing into validator class because its not reusable then and you will be breaking oop paterns ![]() this will get you started Custom validators for Zend_Form_Element Christer’s blog o’ fun |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| Designed by: Miner Skinz |
Powered by vBulletin® Version 3.8.4 Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Search Engine Friendly URLs by vBSEO 3.1.0 |
![]() |