public function __construct() { parent::__construct(); $f = new TQuickForm('f'); $this->formulario = $f; $f->class = 'tform'; $f->setFormTitle('Testando 1,2,3'); // CAMPOS $nome = new TEntry('nome'); $custo = new TEntry('custo'); $f->addQuickField('Nome:', $nome, 400); $f->addQuickField('Custo:', $custo); // ACOES $p = array($this, 'aoGravar'); $gravar = new TAction($p, 'ico_save.png'); $f->addQuickAction('Salvar', $gravar); // Adiciona parent::add($f); }