Skip to content

Instantly share code, notes, and snippets.

@FredAzevedo
Created November 3, 2014 14:01
Show Gist options
  • Save FredAzevedo/d5d1b55fbf326f6211cd to your computer and use it in GitHub Desktop.
Save FredAzevedo/d5d1b55fbf326f6211cd to your computer and use it in GitHub Desktop.
module.config.php Fred Azevedo
<?php
return array(
'router'=>array(
'routes'=>array(
'cms-inicial'=>array(
'type'=>'Zend\Mvc\Router\Http\Literal',
'options'=>array(
'route'=>'/',
'defaults'=>array(
'controller'=>'Cms\Controller\Pagina',
'action'=>'index'
)
)
),
'Cms'=>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(
'__NAMESPACE__'=>'Cms\Controller'
)
)
)
),
),
'controllers' => array(
'invokables' => array(
'Cms\Controller\Pagina' => 'Cms\Controller\PaginaController'
),
),
'view_manager' => array(
'display_not_found_reason' => true,
'display_exceptions' => true,
'doctype' => 'HTML5',
'not_found_template' => 'error/404',
'exception_template' => 'error/index',
/* 'template_map' => array(
'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
'cms/Pagina/index' => __DIR__ . '/../view/cms/Pagina/index.phtml',
'error/404' => __DIR__ . '/../view/error/404.phtml',
'error/index' => __DIR__ . '/../view/error/index.phtml',
),*/
'template_path_stack' => array(
__DIR__ . '/../view',
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment