whisher wrote
> 
> Marco Pivetta wrote
>> Heya!
>> 
>> The ModuleRouteListener (
>> https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/ModuleRouteListener.php)
>> prepends the module name to the requested controller name. That's
>> useful
>> if you want to use controller short names in routing :)
>> 
>> Marco Pivetta
>> 
>> http://twitter.com/Ocramius
>> 
>> http://ocramius.github.com/
>> 
>> 
>> On 17 March 2013 18:48, whisher [via Zend Framework Community] <

>> [email protected]

>>> wrote:
>> 
>>> Hi
>>> I can see in the module Application quick start:
>>> public function onBootstrap(MvcEvent $e)
>>>     {
>>>         $translator =
>>> $e->getApplication()->getServiceManager()->get('translator');
>>>         $application = $e->getApplication();
>>>         $eventManager  = $application->getEventManager();
>>>         $moduleRouteListener = new ModuleRouteListener();
>>>         $moduleRouteListener->attach($eventManager);
>>>     }
>>> but I can't figure out the use or what's it for.
>>> Can you give a pratical exampkle or a short explanation, please ?
>>> Bye.
>>>
>>> ------------------------------
>>>  If you reply to this email, your message will be added to the
>>> discussion
>>> below:
>>>
>>> http://zend-framework-community.634137.n4.nabble.com/zend-2-ModuleRouteListener-pratical-example-tp4659503.html
>>>  To start a new topic under Zend Framework, email
>>> 

>> [email protected]

>>> To unsubscribe from Zend Framework Community, click
>>> here&lt;http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&amp;node=634137&amp;code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4&gt;
>>> .
>>> NAML&lt;http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml&gt;
>>>
> Heya! 
> Thanks!
> :)

Sorry to bother you again but
http://stackoverflow.com/questions/13584136/same-controller-name-in-different-modules-in-zf2
<http://stackoverflow.com/questions/13584136/same-controller-name-in-different-modules-in-zf2>
  

I picked up the right breadcrumb :) ?




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-2-ModuleRouteListener-pratical-example-tp4659503p4659561.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to