参考网址: Beanstalk:https://github.com/kr/beanstalkd Beanstalk console:https://github.com/ptrofimov/beanstalk_console Yii2-beanstalk:http://www.te.gd/exte
分类:
其他好文 时间:
2016-02-04 18:11:41
阅读次数:
585
controllerpublicfunctionactionIndex(){
$myUser=newMyUser();
$myuserQuery=$myUser::find()->select([‘fuid‘,‘fusername‘,‘femail‘,‘fstatus‘,‘fname‘])->join(‘LEFTJOIN‘,‘wanguan_roles‘,‘wanguan_admin.frule=wanguan_roles.fid‘);
$listDataProvider=newActiveDat..
分类:
其他好文 时间:
2016-02-02 07:32:50
阅读次数:
372
日志配置(在@config/web.php中):‘log‘=>[
‘traceLevel‘=>YII_DEBUG?3:0,
‘targets‘=>[
[
‘class‘=>‘yii\log\FileTarget‘,
‘levels‘=>[‘error‘,‘warning‘],
],
[
//日志记录方式
‘class‘=>‘yii\log\FileTarget‘,
‘levels‘=>[‘info‘],//日志等级
‘logVar..
分类:
其他好文 时间:
2016-01-31 13:40:34
阅读次数:
173
问题描述:我使用前后台分离 配置如下: 'user' => [ 'identityClass' => 'app\models\User', 'enableAutoLogin' => true, 'identityCookie' => ['name' => '__user_identity', 'ht
分类:
其他好文 时间:
2016-01-29 20:52:25
阅读次数:
385
没有composer:curl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composer //加载全局环境安装yii2:composer global require "fxp/compo....
分类:
其他好文 时间:
2016-01-26 12:36:15
阅读次数:
125
save()方法会调用insert()和update()中的一个, 用哪个取决于当前 AR 对象是不是新对象(在函数内部,他会检查 yii\db\ActiveRecord::isNewRecord 的值)。 若 AR 对象是由new操作符 初始化出来的,save()方法会在表里插入一条数据; 如果一...
分类:
其他好文 时间:
2016-01-22 00:13:07
阅读次数:
202
最后使用的链接http://www.demo.com/index.php?r=system-admin对照的文件新修改http://www.demo.com/index.php?r=system/admin对应的文件路径
分类:
其他好文 时间:
2016-01-19 12:05:19
阅读次数:
188