'options' => array(
'route' => '/',
'defaults' => array(
- 'controller' => 'index',
+ 'controller' => 'Application\Controller\IndexController',
'action' => 'index',
),
),
),
+ // The following is a route to simplify getting started creating
+ // new controllers and actions without needing to create a new
+ // module. Simply drop new controllers in, and you can access them
+ // using the path /application/:controller/:action
+ 'application' => array(
+ 'type' => 'Literal',
+ 'options' => array(
+ 'route' => '/application',
+ 'defaults' => array(
+ '__NAMESPACE__' => 'Application\Controller',
+ 'controller' => 'IndexController',
+ 'action' => 'index',
+ ),
+ ),
+ 'may_terminate' => true,
+ 'child_routes' => array(
+ 'default' => array(
+ 'type' => 'Segment',
+ 'options' => array(
+ 'route' => '/[:controller[/:action]]',
+ 'constraints' => array(
+ 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
+ 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
+ ),
+ 'defaults' => array(
+ ),
+ ),
+ ),
+ ),
+ ),
),
),
'controller' => array(
'classes' => array(
- 'index' => 'Application\Controller\IndexController'
+ 'Application\Controller\IndexController' => 'Application\Controller\IndexController'
),
),
'view_manager' => array(