public function init() { parent::init(); /** Superlogica_Location é a classe que monta uma url * setController - nome do controller * setAction - nome do action * viaProxy - nome do action* **/ $location = new Superlogica_Location(); $location->setController('fornecedores')->setAction('post')->viaProxy(); $this->addAttribs(array('action' => $location->toString(), 'method' => 'post')); $this->removeAttrib('aposSubmeter'); $this->addElement(new Zend_Form_Element_Hidden('ID_FAVORECIDO_FAV')); }
public function init() { /** Superlogica_Location é a classe que monta uma url * setController - nome do controller * setAction - nome do action * viaProxy - nome do action* **/ $location = new Superlogica_Location(); $location->setController('fornecedores')->setAction('put')->viaProxy(); $this->addAttribs(array('action' => $location->toString(), 'method' => 'post', 'aposSubmeter' => 'recarregarGrids')); $nome = new Zend_Form_Element_Text('ST_NOME_FAV', array('label' => 'Nome')); $telefone = new Zend_Form_Element_Text('ST_TELEFONE_FAV', array('label' => 'Telefone', 'quebraDeLinha' => true, 'size' => 21)); $this->addElements(array($nome, $telefone)); }