hello,
I’m new to YII, I just installed it and successfully created demo application.
Now when I tried to create controller I receive error message or it is created in the root of my HDD instead of in the demo application’s controller subfolder.
-
When I "cd" to "demo" application and execute "./protected/yiic shell" from command line, I get the PHP generated error page. See the attached file.
-
If I "cd" to YII installation folder and try to run "./demo/protected/yiic shell" shell executes OK, then I tried to enter : "controller message helloWorld" into the command line it returned this:
Yii Interactive Tool v1.1 (based on Yii v1.1.<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='8)' />
Please type 'help' for help. Type 'exit' to quit.
>> controller message helloWorld
generate MessageController.php
unchanged helloWorld.php
unchanged index.php
Controller 'message' has been created in the following file:
/MessageController.php
You may access it in the browser using the following URL:
hxxp://hostname/path/to/index.php?r=message
>>
as you can see the controller has been created in the root of my HDD instead of application folder.
What am I doing wrong ?