- 'Zend\View\PhpRenderer' => array(
- 'parameters' => array(
- 'resolver' => 'Zend\View\TemplatePathStack',
- 'options' => array(
- 'script_paths' => array(
- 'application' => __DIR__ . '/../view',
+ // 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' => 'Index',
+ '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(
+ ),