Adding variables to a model that aren't in the db


I have a few variables that I want to show up on my form that aren’t in my DB at least not in the table I’m looking at. My situation is I have one field in the database table and I want to show the user two fields and then run a function to determine what the value of that field should be. Can I add these two values to the model so that I can retrieve the data properly and then make a get function to populate that data correctly when I’m doing an update?

I’m not sure if that makes sense.

Any help is appreciated.



Add two public variables to the model. Populate them in aterFind(), assign posted values in beforeSave(). (beforeValidate() may also be an option.)