亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Home php教程 php手冊 Web development learning accumulation 20161018

Web development learning accumulation 20161018

Oct 19, 2016 am 10:19 AM

Project

1. What does the project do

 Business logic -> Add, delete, modify and check

2. What is object-oriented programming and what are its benefits?

 oop:object oriented programming

 <>Core idea: Use the way humans think and solve problems to program.

 <>Three major features of oop

  Encapsulation: The first level of meaning is to encapsulate properties and methods together to form an object.

   The second meaning is to hide the internal implementation details and provide an operable interface (public) to the outside world

 Inheritance: Subclasses can directly use the properties and methods (non-private) defined by the parent class through inheritance. The extend code can be reused.

  Polymorphism: In different contexts (contexts), its manifestations are different. Php itself is polymorphic.

 <>Why is PHP polymorphic

  PHP is a weakly typed language

  $a='php';$a is a string type data

  $a=100;$a is an integer data

 <>Benefits of oop

  Reusable

 Maintainable

  Expandable

  Relatively high flexibility

3. MVC pattern

 Combined with a single entrance  index.php?p=admin&c=goods&a=insert  (Complete the product addition in the background, C corresponds to the controller (class), a corresponds to the method)

4. My knowledge and understanding of MVC

 <>What is MVC?

  It is a design pattern

 M: model, model, completes specific business logic

  V: view, view, responsible for displaying information

  C: controller, controller, is responsible for issuing orders and plays the role of traffic police

 <>The core idea of ??MVC

  Separate business logic and display

 <>Specific description of the details of MVC

  

 Note: There are two ways to describe the understanding of the model

  1. Model in a broad sense: database model and tool model

   2. Model in a narrow sense: database model

 <>Advantages and Disadvantages of MVC

Advantages: clear layering, easy communication, easy team development, easy maintenance

Disadvantages: High learning cost, more troublesome for small projects

 <>What is the direct relationship between oop and MVC

  There is no direct relationship, but using oop to implement MVC is the perfect solution

4. Project structure description

 Every excellent project has a good project structure.

5. Construction process

 

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 AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

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)

Hot Topics

PHP Tutorial
1488
72