摘要:
1.user表数据结构 2.修改advanced/common/models/User.php use yii\web\IdentityInterface; class User extends ActiveRecord implements IdentityInterface { //增加方法 p... 阅读全文
摘要:
给user写相关接口配置:修改UserController.php use yii\rest\ActiveController; use yii\helpers\ArrayHelper; use yii\web\Response; class UserController extends Activ... 阅读全文
摘要:
怎样把localhost/index.php?r=user变为localhost/user1.修改backend/config/main.php,在components数组中增加 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName... 阅读全文