Introduction to Video Learning Transcript---thinkphp---framework

Source: Internet
Author: User
Tags php language zend zend framework

(1) What is a framework?

The ① framework is a bunch of code sets that contain constants, methods, and classes.

② semi-finished applications, contains only the project development of the underlying architecture, does not include business logic;

③ contains design patterns such as singleton mode, Factory mode, AR (active record positive recording) mode

(2) Does the problem arise when the framework is not applicable?

① code style is not the same, maintenance difficulties;

② small changes may involve a lot of changes, such as data table name modification, will implicate many files;

There are many limitations in ③ function extension;

(3) Advantages of the framework

① simple and fast and efficient development;

② more time to focus on the development of business logic, do not need to pay attention to the underlying architecture (corresponding features ②);

③ easy to handle the problem of multi-person assistance development (corresponding feature ③);

(4) Common framework?

①zend Framework (Zend framework);

Heavyweight framework, the official framework produced by the PHP language company. However, due to the functional considerations are too comprehensive, relatively bloated, start slow

②yii

The framework of the heavyweight framework, developed by the American Chinese, is the author of Manggold J. Learn from the advantages of other frameworks to integrate, called the easy framework. The biggest feature is the extreme use of code reuse. More application in foreign enterprises

③symfony

Heavyweight framework, foreign frame

④laravel

Lightweight framework, foreign framework

⑤codelgniter

Commonly known as CI, lightweight frame, translated into flame code, logo is also a flame symbol. Foreign framework

⑥thinkphp

National development Framework, domestic use is more common. Currently there are Chinese community, official website, help documents and so on. Because there is a series of Chinese support, it is more suitable for entry-level framework learning.

(5) MVC

① What is MVC?

A design pattern that forces the separation of logic, output, and user input. Divide the entire project into three parts

Logic----> Model m; output-----> View v; input-----> Controller C


(6) Programming phase

3 stages of the entire development experience

① Hybrid Programming phase

Popular understanding is the mixed mode, that is, the PHP code and HTML written in a file

Advantages: high efficiency;

Cons: Not easy to maintain (mixed with front and back code);

② Template engine Phase

Template engine typical like the Smarty engine
Advantages: Separating the front-end output from the back-end logic code;

Disadvantage: Because compared to the mixed more than a template engine processing, efficiency than the first type;

③MVC design Phase

Pros: Force the separation of user input, logic, and output. Improve the maintenance on many

Cons: Efficiency is lower than the previous two modes. Can be improved by the hardware to compensate

Video Learning Transcript---thinkphp---framework introduction

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.