zendframework/zf2 — pull request #1061 by VitaliiN (2012-04-19 13:57:25+00:00)
Title: Add consideration of current namespace to get controller and default view...

I have been thinking for long time as would be better to do MVC logic and I met many contradiction. And I decided that as our project not only MVC but and multi-module, we should add consideration of the namespace to MVC.

Now It more preferable to use https://github.com/VitaliiN/ZendSkeletonApplication as skeleton application (see at module/Application/config/module.config.php at first).

This add some advantages as resolve of identical controller names like IndexController in every module as well as it resolve of render templates with previously identical names.
Also now in your module you can override view of a early included module. As example at application you can override ZfcUser login page by this structure:

module
|-Application
|-config
|-src
|-view
|-application
|-zfcuser
|-zfcuser
|-login.phtml // this we remake output
|-register.phtml
.......