Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. 'router' => array(
  2. 'routes' => array(
  3. 'admin' => array(
  4. 'type' => 'ZendMvcRouterHttpHostname',
  5. 'options' => array(
  6. 'route' => ':subdomain.mydomain.local',
  7. 'constraints' => array(
  8. 'subdomain' => 'admin',
  9. ),
  10. 'defaults' => array(
  11. 'module' => '__NAMESPACE__',
  12. 'controller' => 'AdminControllerIndex',
  13. 'action' => 'index',
  14. ),
  15. ),
  16. 'priority' => 9000,
  17. 'may_terminate' => true,
  18. 'child_routes' => array(
  19. 'users' => array(
  20. 'type' => 'ZendMvcRouterHttpLiteral',
  21. 'options' => array(
  22. 'route' => '/users',
  23. 'defaults' => array(
  24. 'module' => '__NAMESPACE__',
  25. 'controller' => 'AdminControllerUsers',
  26. 'action' => 'index',
  27. ),
  28. ),
  29. ),
  30. )
  31. ),
  32. ),
  33. ),
  34.  
  35. 'home' => array(
  36. 'type' => 'ZendMvcRouterHttpLiteral',
  37. 'options' => array(
  38. 'route' => '/',
  39. 'defaults' => array(
  40. 'controller' => 'ApplicationControllerIndex',
  41. 'action' => 'index',
  42. ),
  43. ),
  44. ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement