上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 1. 因使用的是 Mongodb,因此要在 ActiveDataProvider 中指定 key 属性 2. 自定义表格中的按钮 3. 其中你的$url 代表当前的控制器加上button文字和id的连接 阅读全文
posted @ 2016-04-28 09:47 Yeah,程序猿 阅读(259) 评论(0) 推荐(0) 编辑
摘要: <?php $form = ActiveForm::begin([ 'action' => ['/admin/admin/adminadd'], 'id' => 'login-form', 'options' => ['class' => 'form-horizontal'], 'fieldConf 阅读全文
posted @ 2016-04-27 14:20 Yeah,程序猿 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 我的 XAMPP 没有找到这句话 ,直接添加 extension=php_openssl.dll 大概988行另外,需要配置 httpd-ssl.conf 文件(*\xampp\apache\conf\extra\httpd-ssl.conf)大概86行 配置 DocumentRoot 和 Serv 阅读全文
posted @ 2016-04-27 09:53 Yeah,程序猿 阅读(252) 评论(0) 推荐(0) 编辑
摘要: == 只判断两边的值是否相等,例如: 5555 == "5555" ,为真 判断两边的值和类型是否相当,5555 "5555" False,因为类型不同 阅读全文
posted @ 2016-04-27 08:43 Yeah,程序猿 阅读(140) 评论(0) 推荐(0) 编辑
摘要: UrlManger美化后,debug工具条不出现,禁用UrlManager出现 阅读全文
posted @ 2016-04-26 13:03 Yeah,程序猿 阅读(543) 评论(0) 推荐(0) 编辑
摘要: Yii2 默认了两个message 目录,一个是 yii 和app ,所以如果想自定义message目录,要在自己配置文件中覆盖 i18n的设定,请注意,不能使用 *,要使用 app,才能生效 阅读全文
posted @ 2016-04-25 18:53 Yeah,程序猿 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 修改 web\urlManager createUrl函数,去掉 urlEncode函数 阅读全文
posted @ 2016-04-25 12:26 Yeah,程序猿 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 在 common/main.php中配置 View 组件 renderers 配置需要view 文件扩展名的解析类,上图tpl结尾的文件使用 yii\smarty\viewrenderer进行解析,请注意options配置smarty的符号 阅读全文
posted @ 2016-04-25 12:17 Yeah,程序猿 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1. 首先安装 Composer 2. 执行 composer global require "fxp/composer-asset-plugin:~1.1.1" 3. 执行 composer create-project --prefer-dist yiisoft/yii2-app-advance 阅读全文
posted @ 2016-04-25 09:01 Yeah,程序猿 阅读(379) 评论(0) 推荐(0) 编辑
摘要: taskkill /im explorer.exe /f cd /d %userprofile%\appdata\local del iconcache.db /a start explorer.exe exit 阅读全文
posted @ 2016-01-26 16:56 Yeah,程序猿 阅读(190) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 下一页