Пример #1
0
 public function init()
 {
     parent::init();
     \Yii::$app->view->registerJsFile('/js/app/online.js', ['depends' => [AppAsset::className()]]);
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     $actions = parent::actions();
     $actions['error'] = ['class' => 'yii\\web\\ErrorAction'];
     return $actions;
 }