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