Getting Started - Simple Command LIne Question Getting Started - Simple Command LIne Question
Posted 06 November 2011 - 10:30 AM
Just a quick question here...
I'm using Windows.. I can successfully use the command prompt command "webapp" to make a new app.
1. Open cmd
2. D:/yii/framework/yiic webapp D:/websites/testdrive makes the files
Now I want to open the shell, which seems to not work correctly
3. Open cmd
4. cd D:/websites/testdrive
5. D:/yii/framework/yiic shell
This is where the problem happens.. it seems to execute something..
But instead of writing "YII Interactive Tool.. etc" and pausing..
it seems to generate alot of strange html and php and finish executing with no options..
any ideas?? I'm not that great and command prompting.. but I think I'm doing things correctly..
Posted 06 November 2011 - 11:20 AM
For the command line tool on your step 5 instead of "d:/yii/framework/yiic shel" issue the command "protected/yiic shell" - http://www.yiiframew....first-app-yiic
But note that this way of creating models and crud is deprecated... it's better to use Gii for this - http://www.yiiframew...s.gii#using-gii
btw.. welcome to the Yii forum
Posted 06 November 2011 - 03:44 PM
Besides using command line with the verb "webapp" to make new sites, is there any other reason to use it? Or can every reasonable thing be easily accomplished through gii?
thanks a bunch for any help..