Esempio n. 1
0
 /**
  * Просмотр логов
  * @return string
  */
 public function actionLog()
 {
     if (!isset(Yii::$app->user->id) || !Yii::$app->user->identity->getAttribute('user_type')) {
         Log::writeLog('log');
         $this->goHome();
     }
     $logs = Log::getLog();
     return $this->render('log', ['logs' => $logs]);
 }