DefaultController.php
583 Bytes
<?php
namespace app\modules\admin\controllers;
use app\models\Order;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
/**
* Default controller for the `admin` module
*/
class DefaultController extends Controller
{
/**
* Renders the index view for the module
* @return string
*/
public function actionIndex()
{
// var_dump(Yii::$app->user->isGuest);
// var_dump(Yii::$app->user->identity);
//var_dump(Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId()));
return $this->render('index');
}
}