For values that are to be saved to the database it is good practice to
name your form fields as Model.field_name, makes life a whole lot
easier in the long run, and you would access this in the controller as
$this->data['Model']['field_name'];

As for extra fields which are not to be saved to the table you can
still name them as Model.field_name and the model will ignore them if
they do not exist in the table, you can even apply validation rules to
them within the model, but the model will not try to save this data.

Main thing is when having problems with the structure of $this->data
is to use echo debug($this->data);

HTH

Paul

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to