Created
July 3, 2011 17:04
-
-
Save TiuTalk/1062387 to your computer and use it in GitHub Desktop.
Controller de Inscrições + action de inscrição + salvar formulário
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class InscricoesController extends AppController { | |
| public $name = 'Inscricoes'; | |
| public $use = array('Inscricao'); | |
| public function inscrever() { | |
| // Se recebemos dados do formulário | |
| if (!empty($this->data)) { | |
| // Tenta salvar esses dados | |
| $this->Inscricao->save($this->data); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment