| 123456789101112131415161718192021 |
- <?php
- namespace mobile\controllers;
- use common\components\token;
- use Yii;
- use yii\web\Controller;
- class MainController extends PublicController{
- public $enableCsrfValidation = false;
- public function actionIndex()
- {
- echo 'abc';
- echo getenv('DB_DSN');die;
- echo token::create(1152);die;
- $host = Yii::$app->request->getHostInfo();
- return $this->renderPartial('index',['host'=>$host]);
- }
- }
|