Skip to content

Instantly share code, notes, and snippets.

@diegograssato
Created March 11, 2014 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegograssato/9485737 to your computer and use it in GitHub Desktop.
Save diegograssato/9485737 to your computer and use it in GitHub Desktop.
module.config.yml
router:
routes:
home:
type: Zend\Mvc\Router\Http\Literal
options:
route: /
defaults:
controller: Application\Controller\Index
action: index
application:
type: Literal
options:
route: /index
defaults:
__NAMESPACE__: Application\Controller
controller: Index
action: load
may_terminate: true
child_routes:
default:
type: Segment
options:
route: /[:controller[/:action]]
constraints:
controller: '[a-zA-Z][a-zA-Z0-9_-]*'
action: '[a-zA-Z][a-zA-Z0-9_-]*'
defaults: []
service_manager:
factories:
translator: Zend\I18n\Translator\TranslatorServiceFactory
translator:
locale: en_US
translation_file_patterns:
- type: gettext
base_dir: __DIR__/../language/'
pattern: '%s.mo'
controllers:
invokables:
Application\Controller\Index: Application\Controller\IndexController
view_manager:
display_not_found_reason: true
display_exceptions: true
doctype: HTML5
not_found_template: error/404
exception_template: error/index
template_map:
layout/layout: /home/diego/Downloads/simpleddns/module/Application/view/layout/layout.phtml
application/index/index: /home/diego/Downloads/simpleddns/module/Application/view/index/index.phtml
error/404: /home/diego/Downloads/simpleddns/module/Application/view/error/404.phtml
error/index:/home/diego/Downloads/simpleddns/module/Application/view/error/index.phtml
template_path_stack:
- /home/diego/Downloads/simpleddns/module/Application/view'
strategies:
- ViewJsonStrategy
doctrine:
driver:
Application_driver:
class: Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver
paths:
- /home/diego/Downloads/simpleddns/../src/Application/Document
odm_default:
drivers:
Application\Document: Application_driver
eventmanager:
odm_default:
subscribers:
- Gedmo\Timestampable\TimestampableListene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment