CakePHP: Execute code before some model methods
The code I want to execute sets a class variable I want to access in some of my model methods. In a way, it would be similar to the controller's beforeFilter, but limited to some methods defined in app_model.

Is there a way to do this?
CakePHP: Execute code before some model methods
===

The code I want to execute sets a class variable I want to access in some of my model methods. In a way, it would be similar to the controller's beforeFilter, but limited to some methods defined in app_model.

Is there a way to do this?