'; foreach ($options as $id => $value) { $html .= ''; } $html .= ''; $html .= $this->errorList($errors, $name); return $html; } public function reverseSelectOnChange($name, array $options, array $values = array(), array $errors = array(), array $attributes = array(), $class = '') { $html = ''; $html .= $this->errorList($errors, $name); return $html; } private function errorClass(array $errors, $name) { return ! isset($errors[$name]) ? '' : ' form-error'; } private function errorList(array $errors, $name) { $html = ''; if (isset($errors[$name])) { $html .= '