Home Backend Development PHP Tutorial Yii Framework Official Guide Series 14 - Basics: Development Process

Yii Framework Official Guide Series 14 - Basics: Development Process

Feb 13, 2017 am 09:07 AM



After introducing the basic concepts in Yii, we now explain the general development process when using Yii to develop web applications. The development process here assumes that we have completed the requirements analysis and necessary design analysis of the application.

  1. Create a directory structure skeleton. The yiic tool mentioned in Creating the First Web Application can quickly implement this step.

  2. Configure this application. 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 managed. The Gii tools described in Creating First Yii Application and Automatic Code Generation can be used to quickly create active record classes for each data table. Create a Controller class for each type of user request. How to classify user requests depends on actual needs. Generally speaking, if a model class needs to be accessed by users, it should have a corresponding controller class. Gii Tools can also automate this step.

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

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

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

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

  8. Apply appropriate caching techniques to cacheable data points and view points.

  9. Final adjustment and deployment.

In each of the above steps, you may need to create and execute test cases.

The above is the Yii Framework Official Guide Series 14 - Basic Knowledge: Development Process. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to use Yii framework in PHP How to use Yii framework in PHP Jun 27, 2023 pm 07:00 PM

How to use Yii framework in PHP

RESTful API development in Yii framework RESTful API development in Yii framework Jun 21, 2023 pm 12:34 PM

RESTful API development in Yii framework

UniApp implements quick application development and online process analysis UniApp implements quick application development and online process analysis Jul 05, 2023 pm 07:16 PM

UniApp implements quick application development and online process analysis

Steps to implement web page caching and page chunking using Yii framework Steps to implement web page caching and page chunking using Yii framework Jul 30, 2023 am 09:22 AM

Steps to implement web page caching and page chunking using Yii framework

Create a game guide website using Yii framework Create a game guide website using Yii framework Jun 21, 2023 pm 01:45 PM

Create a game guide website using Yii framework

Encrypt and decrypt sensitive data using Yii framework middleware Encrypt and decrypt sensitive data using Yii framework middleware Jul 28, 2023 pm 07:12 PM

Encrypt and decrypt sensitive data using Yii framework middleware

How to use controllers to handle file uploads and downloads in the Yii framework How to use controllers to handle file uploads and downloads in the Yii framework Jul 30, 2023 pm 12:25 PM

How to use controllers to handle file uploads and downloads in the Yii framework

How to use controllers to handle Ajax requests in the Yii framework How to use controllers to handle Ajax requests in the Yii framework Jul 28, 2023 pm 07:37 PM

How to use controllers to handle Ajax requests in the Yii framework

See all articles