Quantcast

Propose, rename __NAMESPACE__ to module in Zend\Mvc\ModuleRouteListener

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Propose, rename __NAMESPACE__ to module in Zend\Mvc\ModuleRouteListener

duke
This post has NOT been accepted by the mailing list yet.
I propose to rename keyword "__NAMESPACE__" to "module" as we accustomed, as well as we can. As example, I use module name: dash separated. Then in Zend\Navigation\Page\Mvc add setModule function and in getHref() check its value. So, it will be create Mvc Pages from array like ZF1 array( 'label' => 'Rus article', 'route' => 'libra-article', 'module' => 'libra-article', 'controller' => 'index', 'action' => 'index', 'params' => array( 'alias' => 'ru-page', ), ), , type every time __NAMESPACE__ is a little difficult. The same regards of using of Zend\View\Helper\Url class Also I propose to do default router like http://pastie.org/4225607
Loading...