
yii2.0
文章平均质量分 62
tanyijanuary
这个作者很懒,什么都没留下…
展开
-
yii2.0 系列一:安装
http://www.yiichina.com/doc/guide/2.0/start-installation curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer 其间根据提示修改 php 的编译命令为: './configure'原创 2016-08-01 16:07:33 · 277 阅读 · 0 评论 -
yii2.0系列三:url美化
'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'suffix' => '', 'rules' => [ '/'=>'/', ],原创 2016-08-01 16:25:46 · 274 阅读 · 0 评论 -
yii2.0系列二:自定义
目的: 1.添加CController,后续所有Controller继承该类,可以通过 fail/success 返回 json 格式的数据; 2.通过 gii 自动添加 model,这个很容易,记住修改 allowedIPs就可以;另外需要在 db.php 中添加 tablePrefix => 't_',然后在创建表的时候选中使用前缀;另外需要注意,preview并没有真正创建文件,要点击原创 2016-08-01 16:09:11 · 406 阅读 · 0 评论