Creating a new application
To create a new application, we are going to use a little powerhouse of a tool known as yiic that comes packaged with the framework. This is a command-line tool that one can use to quickly jumpstart a brand new Yii application. It is not mandatory to use this tool, but it saves a lot of time and guarantees that the proper folder and file structure is in place.
To use this tool to create your first Yii application, open up a shell window, and navigate to a place in your filesystem where you will want to create your application's folder structure. For the purpose of this demo application, we will assume the following:
YiiRootis the folder where you have installed YiiWebRootis configured as the document root of your web serverFrom your command line, change to your
WebRootfolder and execute the following:% cd WebRoot % YiiRoot/framework/yiic webapp demo Create a Web application under '/Webroot/demo'? [Yes|No] Yes mkdir /WebRoot/demo mkdir /WebRoot/demo/assets...