/**
  * List of languages
  * @return string
  */
 public function run()
 {
     $searchModel = new LanguageSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
     LanguageAsset::register($this->controller->view);
     LanguagePluginAsset::register($this->controller->view);
     return $this->controller->render('list', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     LanguageAsset::register($this->controller->view);
     LanguagePluginAsset::register($this->controller->view);
     parent::init();
 }