Yii在windows下的shell 使用方式
yii的資料一般都是在linux 下的,
windows的話有幾個地方要注意下
1、yii會在webapp的protected文件夾下生成一個yiic.bat 所以 不用去framwork 下去運行
2、yiic.bat shell 直接不會進入yiic的shell提示,你需要在後面接上使用的配置文件 比如
D:/xampp/htdocs/QualityMonitor/protected>yiic.bat shell config/main.php
Yii Interactive Tool v1.1 (based on Yii v1.1.10)
Please type 'help' for help. Type 'exit' to quit.
>> help
At the prompt, you may enter a PHP statement or one of the following commands:
- controller
- crud
- form
- help
- model
- module
- rbac
3、yiic.bat shell似乎是預加載放在commands/shell/* 如果執行遇到錯誤,請更改完畢後,一定要先退出yiic的shell重新執行,可以使用ctrl + c 或輸入exit退出
enjoy~