liuruiaaa
- liuruiaaa 赞了回复
我找了一下午,谢谢你!
太感谢你了!!!!!!!! - liuruiaaa 赞了回复
之前先把这个弄了
https://github.com/yiisoft/yii2-mongodb
http://www.cnblogs.com/dcb3688/p/4608028.html
php7也可以的,这样mongodb也可以像mysql一样操作了,
谢谢!!! 之前先把这个弄了
https://github.com/yiisoft/yii2-mongodb
http://www.cnblogs.com/dcb3688/p/4608028.html
php7也可以的,这样mongodb也可以像mysql一样操作了,
谢谢!!!我找了一下午,谢谢你!
太感谢你了!!!!!!!!你的意思死自动缓存,网页在刷新一次里面的自动缓存吧。
我的意思是只是访问第一次,以后网页不管怎样刷新都不在访问数据库。` use yii\captcha\CaptchaAction;
if (Yii::$app->getRequest()->isAjax){ $data = Yii::$app->request->post(); $captcha_validate = new CaptchaAction('captcha', $this); if (isset($data['captcha']) && !$captcha_validate->validate($data['captcha'], false)){ //这是验证失败的 }else{ //验证成功! } }`
- liuruiaaa 回复了 dashixiong 的回答
继承vendor里面的类即可。
比如
先
'aliases' => ['@sms' => '@common/extensions/sms',
],
再'sms' => [ 'class' => 'common/extensions/sms', ]