1234567891011121314151617181920212223242526 |
- <?php
- namespace backend\controllers;
- use yii\web\Controller;
- class BaseController extends Controller
- {
- public function init()
- {
- \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
- parent::init();
- }
- public function beforeAction($action)
- {
-
-
- return true;
- }
- }
|