


Yii Framework Official Guide Series 14 - Basics: Development Process
Feb 13, 2017 am 09:07 AMAfter 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.
Create a directory structure skeleton. The
yiic
tool mentioned in Creating the First Web Application can quickly implement this step.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).
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.Implement actions and their corresponding views. This is the real work that needs to be done.
Configure the necessary action filters in the controller class.
If you need theme functionality, create a theme.
If internationalization (I18N) is required, create translation information.
Apply appropriate caching techniques to cacheable data points and view points.
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)!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

RESTful API development in Yii framework

UniApp implements quick application development and online process analysis

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

Create a game guide website using Yii framework

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 Ajax requests in the Yii framework
