module.config.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. /**
  3. * @version 7.6
  4. */
  5. return array(
  6. 'routes' => array(
  7. // route to home page
  8. 'app-home' => array(
  9. '/',
  10. array(
  11. 'controller' => 'index',
  12. 'action' => 'index',
  13. ),
  14. ),
  15. 'app-ipn' => array(
  16. 'payment/ipn/:gateway',
  17. array(
  18. 'controller' => 'payment',
  19. 'action' => 'ipn',
  20. ),
  21. ),
  22. 'app-advert-redirect' => array(
  23. 'advert/:id',
  24. array(
  25. 'controller' => 'index',
  26. 'action' => 'advert-redirect',
  27. ),
  28. ),
  29. 'app-content-sections' => array(
  30. 'section/:name/:id',
  31. array(
  32. 'controller' => 'sections',
  33. 'action' => 'view',
  34. ),
  35. array(
  36. 'id' => '[\d]+',
  37. ),
  38. ),
  39. 'app-content-pages' => array(
  40. 'page/:name/:id',
  41. array(
  42. 'controller' => 'pages',
  43. 'action' => 'view',
  44. ),
  45. array(
  46. 'id' => '[\d]+',
  47. ),
  48. ),
  49. 'app-rss-index' => array(
  50. 'rss',
  51. array(
  52. 'controller' => 'rss',
  53. 'action' => 'index',
  54. ),
  55. ),
  56. 'app-rss-feed' => array(
  57. 'rss/feed/:type',
  58. array(
  59. 'controller' => 'rss',
  60. 'action' => 'feed',
  61. ),
  62. ),
  63. 'app-sitemap' => array(
  64. 'sitemap.xml',
  65. array(
  66. 'controller' => 'index',
  67. 'action' => 'sitemap',
  68. ),
  69. ),
  70. 'link-play-video' => array(
  71. 'play-video/:id',
  72. array(
  73. 'controller' => 'index',
  74. 'action' => 'play-video',
  75. ),
  76. ),
  77. 'app-payment-completed' => array(
  78. 'payment/completed',
  79. array(
  80. 'controller' => 'payment',
  81. 'action' => 'completed',
  82. ),
  83. ),
  84. 'app-payment-failed' => array(
  85. 'payment/failed',
  86. array(
  87. 'controller' => 'payment',
  88. 'action' => 'failed',
  89. ),
  90. ),
  91. 'app-payment-completed-transaction-id' => array(
  92. 'payment/completed/:transaction_id',
  93. array(
  94. 'controller' => 'payment',
  95. 'action' => 'completed',
  96. ),
  97. ),
  98. 'app-payment-failed-transaction-id' => array(
  99. 'payment/failed/:transaction_id',
  100. array(
  101. 'controller' => 'payment',
  102. 'action' => 'failed',
  103. ),
  104. ),
  105. 'app-error-notfound' => array(
  106. 'not-found',
  107. array(
  108. 'controller' => 'error',
  109. 'action' => 'not-found',
  110. ),
  111. ),
  112. ),
  113. 'view' => array(
  114. 'layouts_path' => __DIR__ . '/../view/layout',
  115. 'views_path' => __DIR__ . '/../view',
  116. 'layout_file' => 'layout.phtml',
  117. ),
  118. );