Matthew Setter has a new post to his site today introducing you to modules in Zend Framework v2 - the "application's heart".
So it really is rewarding and exciting to begin covering all that it has to offer us. In part one of this series, I looked at a central concept of the revised framework - Dependency Injection. In this, the second part, I'm moving on to give a good introduction to the next most important aspect - Modules. In today's post, we'll be looking at what they are, some thoughts and quotes from the key developers involved and working code to get you started.
He talks about some of the key parts of modules in ZF2 (autoloader, manager and listeners) and includes links to a few examples. He then walks you through the creation of a simple module, scaffolding out the basics of the config and autoload handling. He leaves the rest up to you though including adding in the controller/model/views for the module and unit test or language support.
没有评论:
发表评论