Thanks for the reply.
I'm mainly using Cake 1.1. I need to change my templates to use Cake
1.2 and will maybe do this later this week.
As for the code, it's quite straight forward:
I have a classifieds_controller which adds a classified add to the
database:
/* part of function save() */
if(isset($this->params['data'])) {
if($this->Classified->validates($this->params['data'])) {
uses('sanitize');
$Sanitize = & new Sanitize();
$Sanitize->cleanArray($this->data['Classified']);
$this->Classified->save($this->data);
}
}
For my form (I use my manager plugin) the code is just:
echo $html->input($modelName."/".$key, array("class"=>"text"), true);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---