Guest User

Untitled

a guest
Feb 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. echo $this->Form->input('direccion');
  2. echo $this->Form->input('persona.nombre');
  3. echo $this->Form->input('persona.voluntario.cv');
  4.  
  5. if ($this->request->is(['patch', 'post', 'put'])) {
  6. $contact_table = TableRegistry::get('Contacto');
  7. $contact = $contact_table->patchEntity($contact, $this->request->data, [
  8. 'associated' => ['Persona' => ['Voluntario']]
  9. ]);
  10. if ($contact_table->save($contact)) {
  11. // etc.
Add Comment
Please, Sign In to add comment