/**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new StoreCategory('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['StoreCategory'])) {
         $model->attributes = $_GET['StoreCategory'];
     }
     $this->render('admin', array('model' => $model));
 }
 /**
  * Управление категориями.
  *
  * @return void
  */
 public function actionIndex()
 {
     $model = new StoreCategory('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['StoreCategory'])) {
         $model->attributes = $_GET['StoreCategory'];
     }
     $this->render('index', ['model' => $model]);
 }