大前端
-
在 Yii 2 Starter Kit 中实现 RESTful 应用的获取缓存组件列表
1、创建缓存组件的控制器类,/api/controllers/CacheComponentController.php <?php namespace api/control…
-
在 Yii 2 Starter Kit 中数据库迁移的多租户实现
1、前文:http://www.shuijingwanwq.com/2018/01/18/2328/ 2、参考第11步骤,db 组件移至开发环境,以方便于 Gii 的使用,/com…
-
在 Yii 2 Starter Kit 中实现数据库连接时的动态配置,配置属性来源于多租户系统
1、多租户系统中包含多个租户,每个租户均有其自有的数据库配置信息,现有的需求是通过调用多租户系统的接口,基于响应的主机名、用户名和密码来连接数据库,而不是以应用组件的方式来配置,如…
-
如何在开发 RESTful 应用程序时使用 Yii2 调试器?
1、在浏览器中打开:http://frontend.cmcp-api.localhost/ ,页面的底部出现一个调试器工具栏,可以点击展开,如图1 图1 2、在 Postman 中…
-
在 Windwos 10、PHP 7.1.12 下 基于 Yii 2 Starter Kit,复制后台应用为接口应用,实现 RESTful Web 服务的流程
1、在 Windows PowerShll 中,进入 E:/wwwroot/cmcp-api 目录,如图1 图1 2、新建应用api,复制backend目录为api,如图2 图2 …
-
执行:composer update 时,提示:No valid bower.json was found in any branch or tag of https://github.com/blueimp/JavaScript-Canvas-to-Blob.git, cou ld not load a package from it. 的解决
1、执行:composer update 时,提示:No valid bower.json was found in any branch or tag of https://gi…
-
在 Yii2 Starter Kit 的后台应用中,基于一套主题,调整其样式,以与设计一致
1、上一篇:http://www.shuijingwanwq.com/2017/11/30/2084/ 2、现有的默认界面,如图1 图1 3、设计的UI界面,需要如此实现,如图2 …
-
在 Windows 10 64、Oracle VM VirtualBox 5.2.2 下安装运行 Genymotion 2.11.0,以测试本地H5页面
1、打开网址:https://www.genymotion.com/download/ ,由于已经安装了 Oracle VM VirtualBox,所以选择 without Vir…
-
在 Windows 10、Nginx 1.10.1 下,重新加载 Nginx,报错: nginx: [emerg] host not found in upstream “default.creditshop.shenzhen.localhost” in C:/nginx-1.10.1/conf/vhosts/credits hop_shenzhen.conf:26 的解决
1、在 Windows 10、Nginx 1.10.1 下,执行命令:nginx -s reload,重新加载 Nginx 配置,报错:nginx: [emerg] host no…
-
Google Chrome 版本 63(正式版本) (64 位),以 .dev 结尾的域名,自动跳转 https 的解决
1、Google Chrome 升级至 63 后的第一天早晨,打开:http://www.cmcp-backend.dev/ ,自动跳转为:https://www.cmcp-bac…