When generating controller configuration, Zend Studio 10.5 by default creates
something like this:
'controllers' => array(
'invokables' => array(
'Module\Controller\Index' =>
'Module\Controller\IndexController',
),
),
and
'defaults' => array(
'__NAMESPACE__' => 'Module\Controller',
'controller' => 'Index',
'action' => 'index',
),
In one of the labs I was following, instead, this is suggested:
'controllers' => array(
'invokables' => array(
'module-index-controller' =>
'Module\Controller\IndexController',
),
),
and
'defaults' => array(
'controller' => 'module-index-controller',
'action'=>'index',
),
May I have the word of the wise on which method is more suggested?
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/invokable-factory-controller-keys-tp4661388.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]