cuxchia
dfsdf sdfgdfgdfgg
- cuxchia 赞了回答
条件式验证:when
新增时验证,修改时不验证 - cuxchia 评论了教程 关于Yii2的内存泄露问题
学习了,辛苦楼主
在composer.json中的require中添加:"yiisoft/yii2-sphinx": "*"
然后在配置文件中添加该插件:return [ //.... 'components' => [ 'sphinx' => [ 'class' => 'yii\sphinx\Connection', 'dsn' => 'mysql:host=127.0.0.1;port=9306;', 'username' => '', 'password' => '', ], ], ];
使用的时候,举个例子如下:
$sql = 'SELECT * FROM idx_item WHERE group_id = :group_id'; $params = [ 'group_id' => 17 ]; $rows = Yii::$app->sphinx->createCommand($sql, $params)->queryAll();
大神,问一下,为什么要先上传到服务器,然后从服务器再上传到阿里云oss呢,再删除服务器文件?不是可以直接从本地上传到oss吗?
Call to a member function getExtension() on null
第二步,测试上传遇到这个错误,请问楼主怎么解决呢?期待回复,感谢!
composer init安装的,创建了数据库配置文件,也创建了mysql库qm,数据也导入正常,但是前台运行wwwroot/index.php就报500错误,无法运行,其他组件也是,环境是php7.1 请问大神,安装哪里有问题,求指点!!!感谢