Essential Zend Controller (1)

其实我本无意取这样的Title, 不过想不到其他的, 就用吧.

1. Zend Controller中的7个基本角色

Front: 相当于Application的Container.
Plugins_Broker: Plugins的代理.
Plugins: Front的Plugins, 可对整个Application的过程及Action进行操作或者记录.
Router: 根据Request的Url来route到具体的Controller及Action
Dispatcher: 根据route过来的dispatch token来创建Controller并执行Action.
Controller: Zend Framework中的Controller是一个Action的聚合体, 本身起一个真正执行具体Action的作用.
Action: 聚合于Controller内部, 具体体现为一个个Action方法. 在Action内部可调用业务逻辑层进行处理并获得model给view.

待续…
Zend

Related Posts

Leave a Reply