lokasi sekarang:Rumah > Artikel teknikal > rangka kerja php > YII
- Arah:
- semua web3.0 pembangunan bahagian belakang hujung hadapan web pangkalan data Operasi dan penyelenggaraan alat pembangunan rangka kerja php pengaturcaraan harian applet WeChat masalah biasa lain teknologi Tutorial CMS Java Tutorial sistem tutorial komputer Tutorial Perkakasan Tutorial mudah alih Tutorial perisian Tutorial permainan mudah alih
- Mengelaskan:
-
- yii如何打印sql语句
- yii打印sql语句的方法:【$commandQuery = clone $model; echo $commandQuery->createCommand()->getRawSql();】。
- YII 4078 2020-02-19 15:25:55
-
- 使用yii2-query执行多队列
- 使用yii2-query执行多队列的方法:1、【php yii queue1/listen;// or queue1/run】;2、【php yii queue2/listen;// or queue2/run】。
- YII 2887 2020-02-19 15:12:15
-
- yii2如何获取用户get、post参数
- yii2获取用户get、post参数的方法:1、【Yii::$app->request->queryParams】;2、【Yii::$app->request->bodyParams】。
- YII 4232 2020-02-19 14:57:17
-
- yii如何添加数据库连接
- yii添加数据库连接的方法是:【$db=new yii\db\Connection(['dsn'=>'mysql:host=localhost;dbname=ex','uname'=>'root','password'=>' ',...】。
- YII 2423 2020-02-19 14:49:44
-
- yii框架中debug怎么用
- yii框架debug功能:1、编辑frontend/config/main-local.php配置文件,设置允许访问的ip字段,以及存储的debug文件大小;2、进入debug模式,查看sql、cpu占用率、执行时间等。
- YII 3697 2020-02-19 14:36:10
-
- yii框架怎么修改数据库数据
- yii框架修改数据库数据的方法:【$count = Model::model()->updateByPk($id,$attributes,$condition,$params);】。
- YII 3064 2020-02-19 14:25:29
-
- yii框架如何通过表连接查询数据
- yii框架通过表连接查询数据的方法:【join('join','stu','record.sid=stu.sid') select(*) where(['record.re_id'=>$re_id] asArray() one();】。
- YII 2309 2020-02-19 11:44:58
-
- yii2实现自定义报错页面
- yii2自定义报错页面的方法:1、编辑config/main.php文件;2、编辑views/site/error.php文件,如【$this->context->layout = false;】。
- YII 3210 2020-02-19 11:28:53
-
- yii2禁用bootstrap库
- yii2禁用bootstrap库的方法:1、首先打开frontend\asset\AppAsset.php文件;2、然后注释变量$depends中的【'yii\bootstrap\BootstrapAsset'】值。
- YII 3080 2020-02-19 11:18:09
-
- yii2如何引入js文件
- yii2引入js文件的方法是:1、模块引用,通过AssetBundle资源包类实现;2、直接在视图文件中引用,如【】。
- YII 3178 2020-02-19 10:58:59
-
-
-
-
-
- yii2.0中验证码不显示
- yii2.0中验证码不显示的解决方法是:1、首先保证controller中的captcha方法是可访问的;2、然后保证PHP中的GD插件已经启用;3、最后编辑CCaptchaAction.php文件即可。
- YII 2784 2020-02-18 16:12:41