Is there any way of fetching only those records of a model which have 'status = 1' in cakephp v1.3 ?
I have created a field named 'status' in every table of my web application.
I have a model named 'Message'. What I want is that only those messages are displayed, included in search results which have 'status = 1'. Messages with a 'status = 0' won't be displayed and won't be included in search results too.
Please help me if I can do it the cakePHP way, for now as a temporary solution I am using the 'status = 1' in the conditions array of every find of messages.
Thanks