Created
November 3, 2014 14:01
-
-
Save FredAzevedo/d5d1b55fbf326f6211cd to your computer and use it in GitHub Desktop.
module.config.php Fred Azevedo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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