Font Size: a A A

Research And Implementation On CMF Of ThinkPHP Based On MVC Mode

Posted on:2019-12-03Degree:MasterType:Thesis
Country:ChinaCandidate:Q LiuFull Text:PDF
GTID:2428330623468760Subject:Engineering
Abstract/Summary:PDF Full Text Request
With the development of the Internet,Content Management System(CMS),a kind of portal sites used for website construction,has become more and more popular.However,actually,some functions of world-wide-used CMS can not be used in China,owing to the imbalance of domestic economy development,the difference of information level among domestic regions and the seldom-upgraded explore version.And as for the other functions of CMS that can be used in China,their extensibility can barely satisfy the need and they are more inclined to serve ordinary people not developers,although these functions can meet some domestic users' need and the interface is rather pleased.So,to satisfy the need of domestic market,a new software that is similar to CMS,but with more flexibility extensibility and suitable for developers,is needed.Content Management Framework(CMF)stems from the underlying architecture of CMS.At the same time,it advocates the flexible expansion of the whole project in the form of application.Based on the analysis of mainstream CMF and CMS at home and abroad,this paper puts forward the design plan of CMF development framework of ThinkPHP based on object-oriented MVC design pattern.The main work of this paper is as follows:(1)The framework of most CMF(CMS)system does not make full use of the object-oriented idea and the foreign CMF(CMS)has no Chinese develop ment documents,which is not suitable for domestic users.This paper has designed a CMF framework – YunZhiCMF framework.The framework extends MVC's design concepts into the design of modules such as components,blocks,and plug-ins,which increases the robustness,scalability,and reusability of the code.(2)For most of the CMF(CMS)system framework modules are not independent,which is not suitable for team cooperation development and so on.The YunZhiCMF framework proposes separate design ideas for compone nts,blocks,plug-ins,locations,and themes horizontally,and implements the MVC design pattern vertically,which makes the modules independent and highly scalable,facilitating teamwork and division of labor.Its components can automatically load routes,the activation of its blocks does not affect the original data;and there are independent configuration files for components,blocks,etc.,which can be dynamically configured according to different needs.(3)Aiming at the problem that most CMF(CMS)theme templates are not flexible enough,the YunZhiCMF framework adopts the mechanism of theme template development,which separates the developers from the art designers,making the development of the back-office function and the front page development do not affect each other which is beneficial to the team work division.It can be individually customized,making the theme template development flexible and efficient.(4)For the large-scale CMF(CMS)faced with a large number of user access,high concurrent requests and other issues,the YunZhiCMF framework adopt a static cache mechanism as well as implements a variety of cache functions such as Redis,which can improve the loading speed of pages as well as reduce the load of the system and the pressure of data processing.(5)The YunZhiCMF framework has been put into use.Because the YunZhiCMF framework is based on ThinkPHP's independent components and block design.Developers can use it for flexible and efficient website development.Ordinary users can realize the design of personalized websites by developing theme templates.Practice has indicated that the YunZhiCMF framework is fully functional and highly scalable,which reduces the developer's cost of secondary development of Web applications and facilitates teamwork and division of labor.In addition,the YunZhiCMF framework is friendly to domestic users,taking into consideration both developers and ordinary users,and is in line with domestic development status.
Keywords/Search Tags:MVC mode, ThinkPHP, Component, Block, Redis, YunZhiCMF framework
PDF Full Text Request
Related items