
Table of Contents
前言
第 1 章 介绍我们第一个“博客” Module
编写一个新 Module
配置 Module
第 2 章 介绍 Service 和 ServiceManager
什么是 Service
编写 PostService
编写所需的 Model 文件
为我们的 PostService 赋予生机
将 Service 带进 Controller
编写一个 Factory 类
注册 Service
在我们的 Controller 中使用 Service
访问视图变量
小结
第 3 章 为不同的数据库后台做准备
什么是数据库抽象化?
创建 PostMapperInterface
重构 PostService
PostService 拥有依赖对象
总结
评论