Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created August 3, 2013 14:43
Show Gist options
  • Select an option

  • Save eminetto/6146703 to your computer and use it in GitHub Desktop.

Select an option

Save eminetto/6146703 to your computer and use it in GitHub Desktop.
<?php
return array(
'controllers' => array(
'invokables' => array(
'Aluno\Controller\Aluno' => 'Aluno\Controller\AlunoController',
),
),
'router' => array(
'routes' => array(
'aluno' => array(
'type' => 'segment',
'options' => array(
'route' => '/aluno[/:action][/:matricula]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
'id' => '[0-9]+',
),
'defaults' => array(
'controller' => 'Aluno\Controller\Aluno',
'action' => 'index',
),
),
),
),
),
'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',
'error/404' => __DIR__ . '/../view/error/404.phtml',
'error/index' => __DIR__ . '/../view/error/index.phtml',
),
'template_path_stack' => array(
'Aluno' => __DIR__ . '/../view',
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment