I was just reading yii and said that I would like to build the first application testdrive. how can I create it? % YiiRootframeworkyiicwebappWebRoottestdrive note: when running yiic in MacOS, Linux, or Unix systems, you may need to modify the yiic file permission so that it can run. In addition, you can also run this tool like this: % cdWebRoot % phpYi was just reading yii, saying that we want to build the first application testdrive. how can we create it?
% YiiRoot/framework/yiic webapp WebRoot/testdrive
Note: when running yiic on a MacOS, Linux, or Unix system, you may need to modify the permissions of the yiic file to make it run. You can also run this tool as follows:
% Cd WebRoot
% Php YiiRoot/framework/yiic. php webapp testdrive
Enter these command lines .... Where can I lose?
------ Solution --------------------
If you use yii on windows, enter these commands under DOS.
Win + R => open and run;
Enter cmd => open the DOS window;
Then you can use the cd command to switch to your webroot Directory (of course, the directory contains yiiroot, which is a bunch of yii items ).
Note that php commands must be available.