yii2 命令行运行

来源:互联网 发布:淘宝怎样和卖家联系 编辑:程序博客网 时间:2024/06/10 02:54


web访问方式,控制器放在controllers目录下 ,浏览器访问如下地址

http://127.0.0.1/index.php?r=[controller-name]/[method-name]

console访问方式,控制器放在commands目录下

./yii [command-name]/[method-name]

windows命令行: php D: \xampp\htdos\saas\yii deduct/index 

linux命令行: ./php /phpstudy/www/saas/houduan/yii deduct/cost

0 0
原创粉丝点击