Saving data from within the model
Rate Topic:

I have a function inside my model which adds new records to a database. The problem is that, within the model itself you cannot save data using $this->save as it will try to update a record based on the provided fields unless you do something like this: