include framework/yii.php;
Yii::createWebApplication()->helloworld();//自動創建protected目錄,controllers目錄等等
//Yii::createWebApplication()->run();
因為不行為每次開始一個新的yii項目,都得用yiic(比如共享主機上無ssh帳號的情況)
helloworld()方法,自動創建demo/目錄下的那種helloworld即可
just 方便~~~有了這個簡單的方法,可以吸引人立刻創建新的yii項目(不需要每次新項目,都得被提示無protected目錄,無site目錄,無actionIndex…)