title: How to install the scenario in ActiveRecord DadaProvider for each model
body: <p>How to install the scenario in yii ActiveRecord DadaProvider for <strong>each</strong> model;By default should update</p>
  
  <pre><code>public function afterFind()
  {
     if ($this-&gt;scenario === 'searchView') {
              //myCode
     }
     parent::afterFind();
  }
  public function searchView()
  {
          $criteria = new CDbCriteria([
              'select' =&gt; 'last_comment,name,data,cdate,mdate,edate,coperator,eoperator',
              'with' =&gt; ['houses', 'houses.city', 'houses.district', 'houses.street', 'stages']
          ]);
          return new CActiveDataProvider($this, [
              'criteria' =&gt; $criteria,
              'sort' =&gt; [
                  'defaultOrder' =&gt; 'cdate DESC'
          ]);
  }
  </code></pre>