41 lines
661 B
PHP
41 lines
661 B
PHP
<?php
|
|
|
|
/**
|
|
* @author Any
|
|
* @description KISS
|
|
* @date 2020-11-4
|
|
* @version 1.0.0
|
|
*
|
|
* _____LOG_____
|
|
*
|
|
*/
|
|
|
|
namespace app\modules\store\controllers;
|
|
|
|
use yii\helpers\VarDumper;
|
|
use app\modules\store\behaviors\LoginBehavior;
|
|
|
|
|
|
class DefaultController extends Controller
|
|
{
|
|
public function behaviors()
|
|
{
|
|
return array_merge(parent::behaviors(), [
|
|
'login' => [
|
|
'class' => LoginBehavior::className(),
|
|
],
|
|
]);
|
|
}
|
|
|
|
public function actionIndex()
|
|
{
|
|
return $this->render('index', [
|
|
]);
|
|
}
|
|
|
|
public function actionTodo()
|
|
{
|
|
return $this->render('todo');
|
|
}
|
|
|
|
} |