安装使用
安装Composer asset plugin composer global require "fxp/composer-asset-plugin:~1.1.4"
初级版 composer create-project --prefer-dist yiisoft/yii2-app-basic mymulu
高级版 composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced mymulu
获取token https://github.com/settings/tokens
执行init脚本
url正则匹配
'order/show/<id:\d+>' => 'order/view',
url 访问 order/show/7 显示order/view的方法并接收id值
网友评论