03 2016 档案

摘要: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 沈恩忍 阅读(937) 评论(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 沈恩忍 阅读(491) 评论(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 沈恩忍 阅读(449) 评论(0) 推荐(0)

摘要:使用 php 内部web服务器如网站目录 d:\web\index.php1.打开命令窗口,输入下列3条命令cd d:cd d:\web\index.phpphp -S localhost:80802.用浏览器访问 localhost:8080 就可以看到此网页了 阅读全文

posted @ 2016-03-08 13:41 沈恩忍 阅读(346) 评论(0) 推荐(0)

导航