BiFace_Server_Lite/controllers/DashboardController.php
2020-03-27 10:13:51 +07:00

50 lines
960 B
PHP

<?php
namespace app\controllers;
use Yii;
use app\models\Logs;
use app\models\LogsSearch;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\helpers\Url;
/**
* ScriptController implements the CRUD actions for Script model.
*/
class DashboardController extends Controller {
public function init() {
parent::init();
if (Yii::$app->user->isGuest) {
return $this->redirect(['/site/login']);
}
}
/**
* {@inheritdoc}
*/
public function behaviors() {
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all Script models.
* @return mixed
*/
public function actionIndex() {
$this->view->title = "Bảng tổng hợp";
return $this->render('index', [
]);
}
}