Example #1
0
 /**
  * get tag
  */
 public function listTags(ProductRequest $request)
 {
     $key = $request->get('key');
     $tags = Tag::search($key);
     return view('admin.product.list-tags', array('tags' => $tags));
 }
 /**
  * Главная страница админки.
  *
  * @return string
  */
 public function actionIndex()
 {
     $modelTag = new Tag();
     $dataProvider = $modelTag->search(Yii::$app->request->get());
     return $this->render('/back/tag/index', ['modelTag' => $modelTag, 'dataProvider' => $dataProvider]);
 }