Skip to content

Instantly share code, notes, and snippets.

@braulioholtz
Created May 5, 2014 02:42
Show Gist options
  • Save braulioholtz/576408ed931e2824ef52 to your computer and use it in GitHub Desktop.
Save braulioholtz/576408ed931e2824ef52 to your computer and use it in GitHub Desktop.
editar.ctp (resumido)
echo $this->Form->create("Cliente");
echo $this->Form->input('nome', $options);
echo $this->Form->input('email', $options);
echo $this->Form->input('telefone', $options);
echo $this->Form->input('mais', $options);
foreach($opcoes as $data):
echo $this->Form->hidden('opcoes_clientes.opco_id', array('value'=> $id));
echo $this->Form->hidden('opcoes_clientes.cliente_id', array('value'=> $clientes['Cliente']['id']));
echo $this->Form->input('opcoes_clientes.host', $options);
echo $this->Form->input('opcoes_clientes.user', $options);
echo $this->Form->input('opcoes_clientes.password', $options);
endforeach;
echo $this->Form->end($options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment