FabMan

config

Jan 2nd, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.58 KB | None | 0 0
  1. <?php
  2. namespace ChecklistCore;
  3.  
  4. return array(
  5.     'controllers' => array(
  6.         'invokables' => array(
  7.         'ChecklistCore\Controller\Overview' => 'ChecklistCore\Controller\OverviewController',
  8.         ),
  9.     ),
  10.     'router' => array(
  11.         'routes' => array(
  12.             'checklistCore' => array(  
  13.                 'type'    => 'segment',
  14.                 'options' => array(
  15.                     'route'    => '/checklistCore[/][:action][/:id]',
  16.                     'constraints' => array(
  17.                     'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
  18.                     'id'     => '[0-9]+',
  19.                     ),
  20.                 'defaults' => array(
  21.                     'controller' => 'ChecklistCore\Controller\Overview',
  22.                     'action'     => 'index',
  23.                     ),     
  24.                 ),
  25.             ),
  26.         ),
  27.     ),
  28.        
  29.     'view_manager' => array(
  30.         'display_not_found_reason' => true,
  31.         'display_exceptions'       => true,
  32.         'doctype'                  => 'HTML5',
  33.         'not_found_template'       => 'error/404',
  34.         'exception_template'       => 'error/index',
  35.         'template_map' => array(
  36.             'layout/layout'           => __DIR__ . '/../view/layout/layout.phtml',
  37.             'checklistCore/index/index' => __DIR__ . '/../view/checklistCore/index/index.phtml',
  38.             'error/404'               => __DIR__ . '/../view/error/404.phtml',
  39.             'error/index'             => __DIR__ . '/../view/error/index.phtml',
  40.         ),
  41.         'template_path_stack' => array(
  42.             'checklistCore' => __DIR__ . '/../view',
  43.             ),
  44.         ),
  45.        
  46.         'translator' => array(
  47.                 'locale' => 'en_EN',
  48.                 'translation_file_patterns' => array(
  49.                     array(
  50.                         'type'     => 'phpArray',
  51.                         'base_dir' => __DIR__ . '/../language',
  52.                         'pattern'  => '%s.php',
  53.                         'text_domain'  => 'checklist',
  54.                     ),
  55.                 ),
  56.         ),
Advertisement
Add Comment
Please, Sign In to add comment