CN103513966A - PHP developing framework based on assemblies - Google Patents

PHP developing framework based on assemblies Download PDF

Info

Publication number
CN103513966A
CN103513966A CN201210197845.5A CN201210197845A CN103513966A CN 103513966 A CN103513966 A CN 103513966A CN 201210197845 A CN201210197845 A CN 201210197845A CN 103513966 A CN103513966 A CN 103513966A
Authority
CN
China
Prior art keywords
assembly
view
framework
model
assemblies
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210197845.5A
Other languages
Chinese (zh)
Inventor
吴朝波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Li Mei Science And Technology Ltd
Original Assignee
Beijing Li Mei Science And Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Li Mei Science And Technology Ltd filed Critical Beijing Li Mei Science And Technology Ltd
Priority to CN201210197845.5A priority Critical patent/CN103513966A/en
Publication of CN103513966A publication Critical patent/CN103513966A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a PHP developing framework based on assemblies. An MVC mode is adopted for the framework. The framework comprises a controller, a model and a view, wherein the model is responsible for acquiring data, the view is responsible for data presentation, and the controller is responsible for service logic. By calling the model and processing the data, the data are sent into the view to undergo rendering. The framework is characterized by further comprising the assemblies which are used for developing extended functions, and the assemblies are respectively connected with the controller, the model and the view and used for performing loading when the functions are called. The developing mode based on the assemblies is adopted for the framework, the assemblies are loaded according to requirements, and operation efficiency is high; besides, all the extension can be packaged in a mode of the assemblies, and the framework is convenient to extend and flexible in use.

Description

PHP Development Framework based on assembly
Technical field
The present invention relates to a kind of WEB application Development Framework, relate in particular to a kind of PHP Development Framework based on assembly.
Background technology
PHP Development Framework is by providing the basic framework of an exploitation Web program that PHP Web program development has been put on streamline.Code reuse between Sinilar engineering can be saved a large amount of time and efforts of developer.The module of building in advance that PHP Development Framework is built-in, has removed tediously long irksome programing work again from.PHP Development Framework helps lend some impetus to Fast Software exploitation, contributes to create more stable program.In recent years, along with PHP, as one, by many developers, be elected to be their script and constantly develop, PHP Development Framework is gone on fluorescent screen like the mushrooms after rain, such as current more welcome PHP Development Framework: The Zend Framework, Yii Framework, CakePHP etc.
In industry, there are a lot of PHP Development Framework at present, but all uneven aspect the execution efficiency of framework and dirigibility, be exactly that the high but dirigibility of execution efficiency lacks to some extent, or be exactly that dirigibility is fine but execution efficiency is low, be not well positioned to meet the requirement of developer to framework.
Summary of the invention
The object of the invention is to solve the aforementioned problems in the prior, by the needs of the advantage in conjunction with numerous frameworks and agile development, a kind of PHP Development Framework based on assembly is provided, core component file only has tens, and all files are all on-demand loadings, can guarantee that the operational efficiency of framework can guarantee again the dirigibility that framework is used.
The present invention is for achieving the above object, the technological means adopting is, PHP Development Framework based on assembly, adopt MVC pattern, comprise controller, model and view, described model is responsible for obtaining data, described view is responsible for Data Representation, described controller is responsible for service logic, and by calling, model obtains and deal with data, and data are sent in view and played up, it is characterized in that: also comprise assembly, be used for developing expanded function, be connected with controller, model and view respectively, for loading when the funcall.
Further, also comprise small articles, be connected with assembly, view respectively.
Further, described assembly loading procedure comprises the following steps:
Steps A: during framework initialization, the form with key-value pair leaves in an array all core component titles and corresponding component file address;
Step B: will directly find this component file address from this array when needs are used certain assembly, thereby file corresponding to assembly loaded into and called.
Beneficial effect of the present invention is: framework adopts the development mode based on assembly, component delays loads, and while calling, just loading when charging assembly file rather than framework initialization, has accelerated the initialized speed of framework, also accelerated the speed of invocation component file, thereby framework operational efficiency is high; All expansions can encapsulate with the form of assembly, and framework core document is 15 left and right and on-demand loading only, and framework is small and exquisite, powerful, expansion is convenient, uses flexibly.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the present invention is further described.
Fig. 1 is principle of work block diagram of the present invention;
Fig. 2 is form validation flow process of the present invention;
Fig. 3 is function of search flow process of the present invention;
Fig. 4 is small articles workflow of the present invention.
Embodiment
The PHP Development Framework based on assembly as shown in Figure 1, this framework is used MVC pattern, is divided into controller, model, view, and described model is responsible for obtaining data, and described view is responsible for Data Representation, and described controller is responsible for service logic; During framework initialization, create an application example and then find and be routed to corresponding controller method, this controller method can call that model obtains and deal with data, then obtaining the data of coming, delivers in view and plays up.The exploitation of the form of this framework based on assembly, all functions all exist with kit form, and described assembly is connected with controller, model and view respectively, for loading when the funcall.Assembly loading procedure comprises the following steps: steps A: during framework initialization, all core component titles and corresponding component file address, the form with key-value pair leaves in an array; Step B: will directly find this component file address from this array when needs are used certain assembly, thereby file corresponding to assembly loaded into and called.This sample framework operational efficiency is high.
This TFrame checking flow process as shown in Figure 2, has provided the use-pattern of proof rule and the specific implementation flow process of authentication function in figure, realized the simplicity of reusing and verifying of proof rule in service end form validation.This framework function of search flow process as shown in Figure 3, has provided the specific implementation flow process to the specific mode of search rule and function of search in figure, realized the convenience of function of search.
This framework also comprises small articles, is connected respectively with assembly, view, and its workflow as shown in Figure 4.Small articles can call small articles from view, and small articles can have the service logic of oneself, and can freely specify output template for object.
The above, be only the specific embodiment of the present invention, is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses, and can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.

Claims (3)

1. the PHP Development Framework based on assembly, adopt MVC pattern, comprise controller, model and view, described model is responsible for obtaining data, described view is responsible for Data Representation, described controller is responsible for service logic, and by calling, model obtains and deal with data, and data are sent in view and played up, it is characterized in that: also comprise assembly, be used for developing expanded function, be connected with controller, model and view respectively, for loading when the funcall.
2. the PHP Development Framework based on assembly according to claim 1, is characterized in that: also comprise small articles, be connected respectively with assembly, view.
3. the PHP Development Framework based on assembly according to claim 1, is characterized in that: described assembly loading procedure comprises the following steps:
Steps A: during framework initialization, the form with key-value pair leaves in an array all core component titles and corresponding component file address;
Step B: will directly find this component file address from this array when needs are used certain assembly, thereby file corresponding to assembly loaded into and called.
CN201210197845.5A 2012-06-15 2012-06-15 PHP developing framework based on assemblies Pending CN103513966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210197845.5A CN103513966A (en) 2012-06-15 2012-06-15 PHP developing framework based on assemblies

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210197845.5A CN103513966A (en) 2012-06-15 2012-06-15 PHP developing framework based on assemblies

Publications (1)

Publication Number Publication Date
CN103513966A true CN103513966A (en) 2014-01-15

Family

ID=49896757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210197845.5A Pending CN103513966A (en) 2012-06-15 2012-06-15 PHP developing framework based on assemblies

Country Status (1)

Country Link
CN (1) CN103513966A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866327A (en) * 2015-06-19 2015-08-26 上海斐讯数据通信技术有限公司 PHP development method and frame
CN105426204A (en) * 2015-11-05 2016-03-23 浪潮软件集团有限公司 Web high-speed loading rendering method based on domestic CPU, operating system and browser
CN106126212A (en) * 2016-06-17 2016-11-16 武汉斗鱼网络科技有限公司 Based on being grouped catalogue and the view rendering method of single entrance and system under PHP framework
CN107329755A (en) * 2017-06-29 2017-11-07 青岛华正信息技术有限公司 A kind of HZPHP frameworks
CN107766037A (en) * 2017-10-23 2018-03-06 齐琦 MVC frameworks based on PHP
CN107870797A (en) * 2016-09-26 2018-04-03 富士施乐株式会社 Image processing apparatus
CN108804099A (en) * 2017-04-27 2018-11-13 北京微影时代科技有限公司 A kind of PHP development approaches and frame
CN108958732A (en) * 2018-06-28 2018-12-07 上海恺英网络科技有限公司 A kind of data load method and equipment based on PHP
CN115934043A (en) * 2023-01-04 2023-04-07 广州佰瑞医药有限公司 PHP-based high-efficiency MVC framework

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730199B2 (en) * 2006-05-11 2010-06-01 Korea Advanced Institute Of Science And Technology Method and system of processing a data stream
CN101872305A (en) * 2010-06-08 2010-10-27 用友软件股份有限公司 UI (User Interface) performance and service logic separation method and system
CN101876936A (en) * 2009-11-17 2010-11-03 山东浪潮齐鲁软件产业股份有限公司 Service test method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730199B2 (en) * 2006-05-11 2010-06-01 Korea Advanced Institute Of Science And Technology Method and system of processing a data stream
CN101876936A (en) * 2009-11-17 2010-11-03 山东浪潮齐鲁软件产业股份有限公司 Service test method
CN101872305A (en) * 2010-06-08 2010-10-27 用友软件股份有限公司 UI (User Interface) performance and service logic separation method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
康贤坤: ""PHP开发框架的研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 April 2009 (2009-04-15) *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866327A (en) * 2015-06-19 2015-08-26 上海斐讯数据通信技术有限公司 PHP development method and frame
CN104866327B (en) * 2015-06-19 2018-01-02 上海斐讯数据通信技术有限公司 A kind of PHP development approaches and framework
CN105426204A (en) * 2015-11-05 2016-03-23 浪潮软件集团有限公司 Web high-speed loading rendering method based on domestic CPU, operating system and browser
CN106126212A (en) * 2016-06-17 2016-11-16 武汉斗鱼网络科技有限公司 Based on being grouped catalogue and the view rendering method of single entrance and system under PHP framework
CN106126212B (en) * 2016-06-17 2019-06-21 武汉斗鱼网络科技有限公司 View rendering method and system based on grouping catalogue and single entrance under PHP frame
CN107870797A (en) * 2016-09-26 2018-04-03 富士施乐株式会社 Image processing apparatus
CN107870797B (en) * 2016-09-26 2022-06-17 富士胶片商业创新有限公司 Image processing apparatus
CN108804099A (en) * 2017-04-27 2018-11-13 北京微影时代科技有限公司 A kind of PHP development approaches and frame
CN107329755A (en) * 2017-06-29 2017-11-07 青岛华正信息技术有限公司 A kind of HZPHP frameworks
CN107766037A (en) * 2017-10-23 2018-03-06 齐琦 MVC frameworks based on PHP
CN108958732A (en) * 2018-06-28 2018-12-07 上海恺英网络科技有限公司 A kind of data load method and equipment based on PHP
CN115934043A (en) * 2023-01-04 2023-04-07 广州佰瑞医药有限公司 PHP-based high-efficiency MVC framework
CN115934043B (en) * 2023-01-04 2024-03-15 广州佰瑞医药有限公司 PHP-based high-efficiency MVC framework

Similar Documents

Publication Publication Date Title
CN103513966A (en) PHP developing framework based on assemblies
CN106933609B (en) Android application program installation package generation method and device
CN102799456B (en) A kind of game engine loads the method for resource file, device and computing machine
CN104375849B (en) Load the method and device of kernel
CN109670128B (en) WebAssembly-based webpage application implementation method and device
CN105204913A (en) Method and system for running Linux application on Android operating system and system
CN101667134A (en) Method for constructing compiling system, compiling system and constructing device thereof
CN101859244A (en) Multi-toolchain engineering construction method and system
CN105159738A (en) Hot patch implementation method and system
CN104765603A (en) Application program building method and device
CN105468428A (en) Android source code compiling method and system
CN103631708A (en) Program testing method and program testing device
CN104035766A (en) Android system trimming method based on coverage rate test
CN104111843A (en) Sandbox based script updating method and system
CN108089844A (en) A kind of high in the clouds is packaged APP method and devices
CN103605526A (en) Template componentized code generating method based on chain-of-responsibility pattern
CN104102581A (en) Method and device for implementing unit testing
CN105205005A (en) CPU (central processing unit) test method of server and system
CN105260184B (en) A kind of adjustment method and device for restoring image file
CN104407852A (en) Code isolation-based construction method for embedded software and calling method for embedded software
CN103455337A (en) Method for using dynamic library under Android development environment
CN108614764B (en) IMA application software fault injection method
CN111435328B (en) Application testing method and device, electronic equipment and readable storage medium
CN104503776A (en) Method for rapidly packaging android application on APP development platform
KR101488815B1 (en) Device for generating a script for menu test, menu test automatic system having the same, and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140115