View presentation method and system based on grouped directory and single entry under php framework

A view and catalog technology, applied in the field of view presentation method and system based on group catalog and single entry, to achieve the effects of strong applicability, easy maintenance and convenient operation

Active Publication Date: 2019-06-21
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to overcome the shortcomings of the above-mentioned background technology, and provide a view presentation method and system based on a group directory and a single entry under the PHP framework, which can realize the view presentation function while making the controller file search convenient and easy to maintain , and there will be no problem that the controller file is too large

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • View presentation method and system based on grouped directory and single entry under php framework
  • View presentation method and system based on grouped directory and single entry under php framework
  • View presentation method and system based on grouped directory and single entry under php framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0036] see figure 1 As shown, the embodiment of the present invention provides a view presentation method based on a group directory and a single entry under the PHP framework, including the following steps:

[0037] Step S1: Create a system directory structure, the system directory structure includes the system controller general directory and the system view general directory, at least one controller directory is set under the system controller general directory, and at least one controller is set under each controller directory file, each controller file has a single entry and matches with a controller ID (the unique ID of the controller); there is at least one view file directory under the system view general directory, and at least one view file directory is set under each view file directory For view files, the view file name o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a view presentation method and system based on a grouping catalogue and a single entry under a PHP (Hypertext Preprocessor) frame, and relates to the technical field of view function development under the PHP frame. The method comprises the following steps: creating a system catalogue framework; after an initiated view request is received, analyzing the view request, and obtaining a controller catalogue requested by a user, and a controller ID (Identity) requested by the user; according to information including the controller catalogue requested by the user, and the controller ID requested by the user, searching a matched controller file capable of realizing the view function, and executing a function code in the file to obtain view data required for presenting a view page; according to the controller ID requested by the user, searching the corresponding view file; and utilizing the searched view file and the obtained view data, carrying out view page presentation. By use of the method, while a view presentation function is realized, the controller file is convenient in searching and easy in maintenance, and the problem of the overlarge controller file can be avoided.

Description

technical field [0001] The invention relates to the technical field of view function development under a PHP (Hypertext Preprocessor, hypertext preprocessor) framework, specifically a method and system for presenting a view based on a group directory and a single entry under a PHP framework. Background technique [0002] In Internet applications, most applications need to render view pages. Normally, the rendering of a view page requires the use of view files and view data (the data that needs to be presented in the view). The view file is a file that presents the user interface and is stored in the view file directory (the directory where all view files are located); The view data is obtained by executing the controller file, which is a business logic code file that realizes various functions and is stored in the controller directory. [0003] As one of the powerful languages ​​for network development, PHP language has the advantages of open source code, strong cross-platf...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 于立甫
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products