Last active
December 17, 2015 10:29
-
-
Save muriloazevedo/5595236 to your computer and use it in GitHub Desktop.
Como colocar um campo HBTM na view, no CakePHP. Dessa maneira, o framework se encarrega de salvar as relações sem maiores problemas.
This file contains 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 echo $this->Form->input('Phone.number', array('name'=> 'data[Phone][User][]', 'label' => false, 'div' => false, 'type' => 'checkbox', 'value' => $key, 'hiddenField' => false)) ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment