After introducing the basic concepts in yii, we now explain the general development process for developing Web applications using YII. The development process here assumes that we have completed the requirements analysis of the application and the necessary design analysis.
Create a directory structure skeleton. yiicYou can quickly implement this step by creating the tools described in the first web App.
Configure this app. This is achieved by modifying the application configuration file. This step may also require writing some application components, such as user components.
Create a model class for each type of data that you manage. The tools described in Creating first YII application and Automatic Code Generation Gii can be used to quickly create an active record class for each data table. Create a controller class for each type of user request. How to classify user requests depends on the actual demand. In general, if a model class needs to be accessed by a user, he should have a corresponding controller class. Giitool can also automatically implement this step.
Implement the actions and their corresponding views. This is the work that really needs to be done.
Configure the necessary action filters in the controller class.
If you need a theme feature, create a theme.
If internationalization (i18n) is required, create translation information.
Apply the appropriate caching techniques to the data points and view points that can be cached.
Final adjustment and deployment.
In each of these steps, you may need to create and execute a test case.
The above is the Yii Framework Official Guide Series 14--basic knowledge: the content of the development process, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!