Zend Framework 2 Best Practices

1. Resources ZF2CheatSheet Routing Advanced Configuration Tricks Slide Getting Started Document and Tutorial 2. Ajax and ZF2 How to response in JSON and HTML format in ZF2 Controller ? There is some solution: Return a response object (disable layout and view)

Terminate the script

Return false disables the view and not the layout because the …

Continue reading

Zend Framework 2 – Getting Started

Three core concepts Decoupled and DI-driven (ServiceManager, Di) Event-driven (EventManager) HTTP handlers (DispatchableInterface)   Terminology An Event Manager is an object that aggregates listeners for one or more named events, and which triggers events. A Listener is a callback that can react to an event. An Event is an action. 1. Model – Doctrine Doctrine can …

Continue reading