大前端
-
在PhpStorm中使用Less编译器,将Less代码转换为CSS
1、使用NPM来安装Less编译器,查看NPM版本,如图1npm -V 图1 2、全局安装Less编译器,在PhpStorm中运行NPM,选择File,打开Settings,如图2…
-
在 PHP 7.1.12、Yii Framework/1.1.16 下报错:PHP notice unserialize(): Unexpected end of serialized data 的解决
1、报错:unserialize(): Unexpected end of serialized data,如图1 图12、编辑 /framework/caching/CCache…
-
在 Yii2 Starter Kit 的后台应用中,新建一套主题的流程
1、新建目录:/backend/views/themes/default,指定包含主题资源(CSS, JS, images, 等等)的基准目录,如图1 图1 2、复制目录:/bac…
-
composer install 时,提示:Package yiisoft/yii2-codeception is abandoned, you should avoid using it. Use codeception/codeception instead.的解决
1、composer install 时,提示:Package yiisoft/yii2-codeception is abandoned, you should avoid us…
-
通过 npm 进行安装 Bootstrap v3.3.7
1、通过 npm 进行安装 v3,如图1npm install bootstrap@3 图1 2、安装 Grunt,以 编译 CSS 和 JavaScript 文件,由于 npm …
-
在 CakePHP 2.10.3 中,在控制器中打印已经执行过的 SQL 语句流程
1、编辑 /app/Config/core.php,Configure::write(‘debug’, 2);,如图1 图1 2、编辑 /app/View/…
-
在 PHP 7.0.22、CakePHP 2.10.3 下,报错:Error: The datasource configuration tmp was not found in database.php.的解决(动态设置数据源对象)
1、在 PHP 7.0.22、CakePHP 2.10.3 下,报错:Error: The datasource configuration tmp was not found i…
-
在 PHP 7.0.22、CakePHP 2.6.4 下,报错:Error: Cannot use ‘String’ as class name as it is reserved 的解决
1、在 CakePHP 2.6.4 下,报错:Error: Cannot use ‘String’ as class name as it is reser…
-
HTML iframe 标签支持某一顶级域名下的所有泛域名,限制其他顶级域名的展示实现
1、在 360 浏览器 兼容模式下,出现 此内容不能显示在一个框架中 的提示,如图1 此内容不能显示在一个框架中 为了帮助保护在此网站中输入的信息的安全,此内容的发布者不允许在框架…
-
Windows 10 家庭版 安装 Docker,且配置配置镜像加速器为阿里云加速器
1、Windows 版本,为 Windows 10 家庭中文版,不支持Hyper-V,如图1 图1 2、打开网址:https://docs.docker.com/docker-fo…