Home  >  Article  >  Backend Development  >  PHP中cms在线模块和在线插件安装的实现原理

PHP中cms在线模块和在线插件安装的实现原理

WBOY
WBOYOriginal
2016-06-06 20:08:001376browse

想问一下大家,PHP中主流cms在线模块和在线插件安装的实现原理,类型于PHPCMS中模块在线安装,服务端和api接口是如何设计的。有没有参考的案例和源码可以分享交流一下,谢谢!

回复内容:

想问一下大家,PHP中主流cms在线模块和在线插件安装的实现原理,类型于PHPCMS中模块在线安装,服务端和api接口是如何设计的。有没有参考的案例和源码可以分享交流一下,谢谢!

1. 模块在线安装实际上就是数据库表的安装, 你安装的时候会给你自动生成模块的模板,模板就是一套机制,有CRUD的基本功能(phpcms我记得都是继承content.php就会有的)
2. phpcms有CRUD的api的吧
3. api接口的就比教简单,可以自己路由(或者在github上面找一个路由解析的工具),实现restful Api

Statement:
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