<?php namespace api\controllers; use yii\web\Controller; /** * Created by PhpStorm. * User: iron * Date: 2018/5/25 * Time: 16:42 */class SiteController extends Controller{ public function actions() { return [ 'error' => [ 'class' => 'yii\web\ErrorAction', ], ]; }}
<?php
namespace api\controllers;
use yii\web\Controller;
/**
* Created by PhpStorm.
* User: iron
* Date: 2018/5/25
* Time: 16:42
*/
class SiteController extends Controller
{
public function actions() {
return [
'error' => [
'class' => 'yii\web\ErrorAction',
],
];
}