actually, the $this->ClassName->save() function is supposed to be in the controller class as is. What it does is sends the data to the Model in order to validate the data to be saved. In the Model, you would place all of your data validation, and if the passed data passes the validation present in the Model, the Controller will go ahead and save the data to the database.
On Jan 10, 2008 4:48 AM, manish <[EMAIL PROTECTED]> wrote: > > Hi All, > I am relatively new to CakePHP and working with CakePHP 1.2 beta. > > What I have learned so far is that we use controllers to take input > and models to actually save data. But the form helper Save function is > working fine in my controller class and not in my model class. I want > to ask that is this the way it goes or I am doing it wrong. > > I also want to ask that can we use multiple tables for One model > class , One corresponding controller class with multiple actions. If > yes, can anybody please tell me how? > > > > -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d- s+: a19 C++++ UL++ P L++ !E W++ N(-) o? K? w(+) O? M-- V? PS+ PE Y- PGP- t+ 5? X- R tv-- b++ Di D+ G+ e h! r y- ------END GEEK CODE BLOCK------ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---