What I'm wondering is:
is it possible in Yii to add some kind of property in a Model, so only items with the property isdeleted
set as 0
are shown?
So I'm looking for a way, Yii would just ignore these instances of the items... Something like:
public function rules()
{
return array(
...
array('isdeleted', 'shouldEqualTo=>0'),
...
);
}
I thought messing around with rules()
would be a way, but it doesn't work or I am doing it wrong...