2016年3月10日

摘要: 1.用GII 生成一个模块(modules)名字为 admin 2.在./config/web.php 中加入如下配置 把 use app\models\LoginForm; 改为 use app\modules\admin\models\LoginForm; 把 use app\models\Co 阅读全文
posted @ 2016-03-10 22:27 沈恩忍 阅读(879) 评论(0) 推荐(0) 编辑
摘要: <?php namespace app\models; use Yii; class User extends \yii\db\ActiveRecord implements \yii\web\IdentityInterface { public $auth_key='sun'; public $a 阅读全文
posted @ 2016-03-10 21:53 沈恩忍 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 当用数据库登录系统报如下错误时 PHP Recoverable Error – yii\base\ErrorException Argument 1 passed to yii\web\User::login() must be an instance of yii\web\IdentityInte 阅读全文
posted @ 2016-03-10 21:44 沈恩忍 阅读(408) 评论(0) 推荐(0) 编辑

导航