_getNewForm(); if ($form->validate()) { $data = $form->getValues(); $form->getElement('dump')->setValue(nl2br(var_export($data, true))); } $this->_addFormItem($form); return $this; } protected function _doAutocompleteState() { $this->_doAutocompleteStateAjax(); return $this->_do404(); } protected function _doAutocompleteStateAjax() { $response = array(); $term = Qs_Request::getGetValue('term'); if (null !== $term) { $response = $this->_getDataObj()->getStates($term); } $this->_displayJson($response); exit; } }