Advertisement
Guest User

Untitled

a guest
Jul 31st, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Zend Framework (http://framework.zend.com/)
  5. *
  6. * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
  7. * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
  8. * @license http://framework.zend.com/license/new-bsd New BSD License
  9. */
  10. return array(
  11. 'router' => array(
  12. 'routes' => array(
  13. 'home' => array(
  14. 'type' => 'Zend\Mvc\Router\Http\Literal',
  15. 'options' => array(
  16. 'route' => '/',
  17. 'defaults' => array(
  18. 'controller' => 'Application\Controller\Index',
  19. 'action' => 'index',
  20. ),
  21. ),
  22. ),
  23. // The following is a route to simplify getting started creating
  24. // new controllers and actions without needing to create a new
  25. // module. Simply drop new controllers in, and you can access them
  26. // using the path /application/:controller/:action
  27. 'application' => array(
  28. 'type' => 'Literal',
  29. 'options' => array(
  30. 'route' => '/application',
  31. 'defaults' => array(
  32. '__NAMESPACE__' => 'Application\Controller',
  33. 'controller' => 'Index',
  34. 'action' => 'index',
  35. ),
  36. ),
  37. 'may_terminate' => true,
  38. 'child_routes' => array(
  39. 'default' => array(
  40. 'type' => 'Segment',
  41. 'options' => array(
  42. 'route' => '/[:controller[/:action]]',
  43. 'constraints' => array(
  44. 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
  45. 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
  46. ),
  47. 'defaults' => array(
  48. ),
  49. ),
  50. ),
  51. ),
  52. ),
  53. ),
  54. ),
  55. 'service_manager' => array(
  56. 'abstract_factories' => array(
  57. 'Zend\Cache\Service\StorageCacheAbstractServiceFactory',
  58. 'Zend\Log\LoggerAbstractServiceFactory',
  59. ),
  60. 'aliases' => array(
  61. 'translator' => 'MvcTranslator',
  62. ),
  63. ),
  64. 'translator' => array(
  65. 'locale' => 'en_US',
  66. 'translation_file_patterns' => array(
  67. array(
  68. 'type' => 'gettext',
  69. 'base_dir' => __DIR__ . '/../language',
  70. 'pattern' => '%s.mo',
  71. ),
  72. ),
  73. ),
  74. 'controllers' => array(
  75. 'invokables' => array(
  76. 'Application\Controller\Index' => 'Application\Controller\IndexController'
  77. ),
  78. ),
  79. 'view_manager' => array(
  80. 'display_not_found_reason' => true,
  81. 'display_exceptions' => true,
  82. 'doctype' => 'HTML5',
  83. 'not_found_template' => 'error/404',
  84. 'exception_template' => 'error/index',
  85. 'template_map' => array(
  86. 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
  87. 'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
  88. 'error/404' => __DIR__ . '/../view/error/404.phtml',
  89. 'error/index' => __DIR__ . '/../view/error/index.phtml',
  90. ),
  91. 'template_path_stack' => array(
  92. __DIR__ . '/../view',
  93. ),
  94. ),
  95. 'navigation' => array(
  96. 'default' => array(
  97. 'home' => array(
  98. 'label' => 'home',
  99. 'route' => 'home',
  100. ),
  101. ),
  102. ),
  103. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement