Zend Framework “documentation” dosn’t say much about validating single checkboxes. If you need to do this, say for a terms ang conditions agreement or something, you have to check that the value is greaterthan zero.
To do this, add a validator like this:
$e =new Zend_Form_Element_Checkbox('tnc');
$e->addValidator('GreaterThan', false, array(0));
And validate your form in the controller as usual
if ($form->isValid($request->getPost())) {
Thanks to Rob Knight for adding how to do this in the bug tracker. http://framework.zend.com/issues/browse/ZF-5920
Paula Brusky is a bassoonist, teacher, and researcher. She recently finished a PhD in Bassoon Performance at the Sydney Conservatorium of Music, University of Sydney.
This iconic Australian brand have remodelled their website as an interactive web 2.0 application. It allows users to participate by adding and suggesting events, uploading pictures, search for upcoming events and vote on promo videos. 


