Use Scope On Mymodel('search')

Hi

How to apply a scope in a new model(‘search’) ?

I try


  $model = new myModel('search');

  $model=$model->myScope();

But it seems apply both of defaultScope and myScope scopes.

How Can I solve it?

Thanks!

Dear Friend

I hope the following will do the things.




$model = new myModel('search');

$model->resetScopes();

$model=$model->myScope();



Regards.

It worked with

$model->resetScope[color="#FF0000"]s/color;

thanks Seenivasan :)