module.config.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?php
  2. /**
  3. * @version 7.3
  4. */
  5. return array(
  6. 'routes' => array(
  7. 'listings-create' => array(
  8. 'sell',
  9. array(
  10. 'controller' => 'listing',
  11. 'action' => 'create',
  12. ),
  13. ),
  14. 'listings-creation-confirm' => array(
  15. 'sell/confirm',
  16. array(
  17. 'controller' => 'listing',
  18. 'action' => 'confirm',
  19. ),
  20. ),
  21. 'listings-create-similar' => array(
  22. 'sell/similar/:id',
  23. array(
  24. 'controller' => 'listing',
  25. 'action' => 'create',
  26. 'option' => 'similar',
  27. ),
  28. array(
  29. 'id' => '[\d]+',
  30. ),
  31. ),
  32. 'listings-edit' => array(
  33. 'edit/:id',
  34. array(
  35. 'controller' => 'listing',
  36. 'action' => 'create',
  37. 'option' => 'edit',
  38. ),
  39. array(
  40. 'id' => '[\d]+',
  41. ),
  42. ),
  43. 'listings-list-draft' => array(
  44. 'list-draft/:id',
  45. array(
  46. 'controller' => 'listing',
  47. 'action' => 'create',
  48. 'option' => 'list-draft',
  49. ),
  50. array(
  51. 'id' => '[\d]+',
  52. ),
  53. ),
  54. 'listings-search' => array(
  55. 'search',
  56. array(
  57. 'controller' => 'browse',
  58. 'action' => 'index',
  59. ),
  60. ),
  61. 'listings-all' => array(
  62. 'browse',
  63. array(
  64. 'controller' => 'browse',
  65. 'action' => 'index',
  66. ),
  67. ),
  68. 'listings-filtered-type' => array(
  69. 'browse/:show',
  70. array(
  71. 'controller' => 'browse',
  72. 'action' => 'index',
  73. ),
  74. ),
  75. 'listings-categories' => array(
  76. 'categories',
  77. array(
  78. 'controller' => 'categories',
  79. 'action' => 'browse',
  80. ),
  81. ),
  82. 'listings-categories-browse' => array(
  83. 'categories/:category_name/:parent_id',
  84. array(
  85. 'controller' => 'categories',
  86. 'action' => 'browse',
  87. ),
  88. array(
  89. 'parent_id' => '[\d]+',
  90. ),
  91. ),
  92. 'listings-categories-browse-sluggable' => array(
  93. 'categories/:category_slug',
  94. array(
  95. 'controller' => 'categories',
  96. 'action' => 'browse',
  97. ),
  98. array(
  99. 'category_slug' => '[a-zA-Z0-9_\-]+',
  100. ),
  101. ),
  102. 'listings-browse-category' => array(
  103. 'category/:category_name/:parent_id',
  104. array(
  105. 'controller' => 'browse',
  106. 'action' => 'index',
  107. ),
  108. array(
  109. 'parent_id' => '[\d]+',
  110. ),
  111. ),
  112. 'listings-browse-category-sluggable' => array(
  113. 'category/:category_slug',
  114. array(
  115. 'controller' => 'browse',
  116. 'action' => 'index',
  117. ),
  118. array(
  119. 'category_slug' => '[a-zA-Z0-9_\-]+',
  120. ),
  121. ),
  122. 'listings-browse-store' => array(
  123. 'store/:name/:user_id',
  124. array(
  125. 'controller' => 'browse',
  126. 'action' => 'index',
  127. 'show' => 'store',
  128. ),
  129. array(
  130. 'user_id' => '[\d]+',
  131. ),
  132. ),
  133. 'listings-browse-store-sluggable' => array(
  134. 'store/:store_slug',
  135. array(
  136. 'controller' => 'browse',
  137. 'action' => 'index',
  138. 'show' => 'store',
  139. ),
  140. ),
  141. 'listings-browse-other-items' => array(
  142. 'other-items/:username/:user_id',
  143. array(
  144. 'controller' => 'browse',
  145. 'action' => 'index',
  146. 'show' => 'other-items',
  147. ),
  148. array(
  149. 'user_id' => '[\d]+',
  150. ),
  151. ),
  152. 'listings-listing-details' => array(
  153. 'listing/:name/:id',
  154. array(
  155. 'controller' => 'listing',
  156. 'action' => 'details',
  157. ),
  158. array(
  159. 'id' => '[\d]+',
  160. ),
  161. ),
  162. 'listings-advanced-search' => array(
  163. 'advanced-search',
  164. array(
  165. 'controller' => 'search',
  166. 'action' => 'advanced',
  167. ),
  168. ),
  169. // purchase forms
  170. 'listings-bid' => array(
  171. 'bid/:action/:id',
  172. array(
  173. 'controller' => 'purchase',
  174. 'type' => 'bid',
  175. ),
  176. array(
  177. 'id' => '[\d]+',
  178. ),
  179. ),
  180. 'listings-buy' => array(
  181. 'buy/:action/:id',
  182. array(
  183. 'controller' => 'purchase',
  184. 'type' => 'buy',
  185. ),
  186. array(
  187. 'id' => '[\d]+',
  188. ),
  189. ),
  190. 'listings-offer' => array(
  191. 'offer/:action/:id',
  192. array(
  193. 'controller' => 'purchase',
  194. 'type' => 'offer',
  195. ),
  196. array(
  197. 'id' => '[\d]+',
  198. ),
  199. ),
  200. 'listings-cart' => array(
  201. 'cart',
  202. array(
  203. 'controller' => 'cart',
  204. 'action' => 'index',
  205. ),
  206. ),
  207. ),
  208. 'view' => array(
  209. 'layouts_path' => __DIR__ . '/../view/layout',
  210. 'views_path' => __DIR__ . '/../view',
  211. 'layout_file' => 'layout.phtml',
  212. ),
  213. );