This article is just for reference. All credit goes to http://www.yiiframework.com/doc/guide/basics.workflow
Having described the fundamental concepts of Yii, we show the common workflow for developing a web application using Yii. The workflow assumes that we have done the requirement analysis as well as the necessary design analysis for the application.
- Create the skeleton directory structure. The
yiictool described in Creating First Yii Application can be used to speed up this step.
- Configure the application. This is done by modifying the application configuration file. This step may also require writing some application components (e.g. the user component).
- Create a model class for each type of data to be managed. The
Giitool described in Creating First Yii Applicationand in Automatic Code Generation can be used to automatically generate the active record class for each interested database table.
- Create a controller class for each type of user requests. How to classify user requests depends on the actual requirement. In general, if a model class needs to be accessed by users, it should have a corresponding controller class. The
Giitool can automate this step, too.
- Implement actions and their corresponding views. This is where the real work needs to be done.
- Configure necessary action filters in controller classes.
- Create themes if the theming feature is required.
- Create translated messages if internationalization is required.
- Spot data and views that can be cached and apply appropriate caching techniques.
- Final tune up and deployment.