Yii Framework Official Guide Series 14--Basics: the development process

Source: Internet
Author: User



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.

  1. Create a directory structure skeleton. yiicYou can quickly implement this step by creating the tools described in the first web App.

  2. 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.

  3. 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.

  4. Implement the actions and their corresponding views. This is the work that really needs to be done.

  5. Configure the necessary action filters in the controller class.

  6. If you need a theme feature, create a theme.

  7. If internationalization (i18n) is required, create translation information.

  8. Apply the appropriate caching techniques to the data points and view points that can be cached.

  9. 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)!

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.