To give you an initial experience with Yii, in this section we describe how to create your first Yii application. We will useyiic
(command line tool) to create a new Yii application andGii
(powerful web based code generator) to automate code creation for certain tasks. For convenience, we assume thatYiiRoot
is the directory where Yii is installed, and WebRoot
is the document root of our Web server.
Run yiic
on the command line as follows:
% YiiRoot/framework/yiic webapp WebRoot/testdrive