0
Etou starting now with Cakephp, and I’d like to know how to get the value of a specific field.
For example, I have the name and email fields. How to get the name field value?
PS: I know you have the method $this->data
, but he takes all the fields.
My form looks like this:
echo $this->Form->create('Usuario', array('action' => 'get'));
echo $this->Form->input('usuario');
echo $this->Form->input('email');
echo $this->Form->input('senha', array('type' => 'password'));
echo $this->Form->input('ativo');
echo $this->Form->end('Salvar');
Do you refer to the fields of a form? If it is, it is possible to show us how your form is?
– Paulo Rodrigues
Or, if it’s not what Paulo Rodrigues said, he wants to get the data from Model?
– bfavaretto
Exact @Paulorodrigues. No matter what field I want to pick up. I just want to know how to pick up the value of a field individually.
– Meeeefiu