Is it possible to define find conditions that are always effective in all controllers and functions that use specific model?
For example if I want to return only products that are in stock no matter what. Maybe somewhere in model:
conditions => array('inStock >' => 0)
I think you could try to do a function on the model, and then call it in controller with a simple line.
Controller:
Model:
Or try this Link, I think it will help. I just don’t know nothing about callbacks: http://book.cakephp.org/view/1049/beforeFind