Hi, I would like to adjust a price coming out of the database at the model level so that it is consistent throughout the site.
I thought I had done something like this before: class Product extends AppModel { var $name = 'Product'; function beforeFilter() { $this->list_price = $this->list_price - $discount; return $this; } } but I can't find any documentation about the beforeFilter function in a model, maybe I did it before in Ruby on Rails? Can this be done in Cake? Thanks Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---