dataObj->saveDimensions((int)$_REQUEST['width']); $this->_displayJson(array('status' => 'success')); } protected function _bindFormFields(Qs_Form $form) { parent::_bindFormFields($form); $validatorOptions = array( 'haystack' => $this->dataObj->prepareOptions($_REQUEST['options']), ); $inArrayValidator = new Zend_Validate_InArray($validatorOptions); $inArrayValidator->setMessage(self::DEFAULT_NOT_FOUND, Zend_Validate_InArray::NOT_IN_ARRAY); $form->defaultValue->addValidator($inArrayValidator); } }