public function fields() { $f = new TextField("name", "Nome"); $this->addField($f, "LOFCRU"); $f = new TextField("email", "E-mail"); $f->validation("email"); $this->addField($f, "LOFCRU"); $f = new TextField("username", "Usuário"); $this->addField($f, "LOFCRU"); $f = new PasswordField("password", "Senha"); $this->addField($f, "CRU"); $f = new ToggleField(); $this->addField($f, "LOFCRU"); }