- ),
- 'home' => array(
- 'type' => 'Zend\Mvc\Router\Http\Literal',
- 'options' => array(
- 'route' => '/',
- 'defaults' => array(
- 'controller' => 'index',
- 'action' => 'index',
+ 'Zend\Mvc\View\ExceptionStrategy' => array(
+ 'parameters' => array(
+ 'displayExceptions' => true,
+ 'errorTemplate' => 'error/index.phtml',
+ ),
+ ),
+ 'Zend\Mvc\View\RouteNotFoundStrategy' => array(
+ 'parameters' => array(
+ 'notFoundTemplate' => 'error/404.phtml',
+ ),
+ ),
+
+ // Setup the router and routes
+ 'Zend\Mvc\Router\RouteStack' => array(
+ 'parameters' => array(
+ 'routes' => array(
+ 'default' => array(
+ 'type' => 'Zend\Mvc\Router\Http\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' => 'index',
+ 'action' => 'index',
+ ),
+ ),
+ ),
+ 'home' => array(
+ 'type' => 'Zend\Mvc\Router\Http\Literal',
+ 'options' => array(
+ 'route' => '/',
+ 'defaults' => array(
+ 'controller' => 'index',
+ 'action' => 'index',
+ ),
+ ),
+ ),
+ ),