Thanks for the reply Grant. My problem is that I have a 'check here to accept' checkbox on my form. I want to associate it with my current model even though there is no corresponding column in the table. Because there is no column I get an incorrect index error in php. In rails if you use attr_accessor it creates a variable in the model which can be written and read to and from. Is there a equivalent in cakephp? Or should I just be lazy and create a column in the table. That way I can benefit from all the data validation, etc. Thanks.
On Mar 21, 1:40 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > I don't know what the att_accessor is in RoR. Perhaps what you want > is the afterFind callback, where you can modify the data loaded from > the db (including adding extra attributes). > > Justin Hernandez wrote: > > How can I add variables to a model without having a corresponding > > field in the table? I'm looking for something like the attr_accessor > > in RoR. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
