基于CodeIgniter的Service层构建

最近做了一些事情,其中一件就是分离出之前基于CI写的Service层并打包发布到GitHub。
想着还是应该留下一点什么,便是来由。
这是还在Yumeer的时候,那会儿江哥刚来,梳理了整个业务逻辑,发现杂乱无章,遂推倒了重来。还是我一人负责后端,囿于经验,之前完全是hard-coding,代码复用性基本为0,加之CI的特性:

-The Model represents your data structures. Typically your model classes will contain functions that help you retrieve, insert, and update information in your database.
-The View is the information that is being presented to a user. A View will normally be a web page, but in CodeIgniter, a view can also be a page fragment like a header or footer. It can also be an RSS page, or any other type of “page”.
-The Controller serves as an intermediary between the Model, the View, and any other resources needed to process the HTTP request and generate a web page.

Continue reading “基于CodeIgniter的Service层构建”

基于CodeIgniter的Service层构建