routing.yml 2.39 KB
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
detect_lang:
  url: /
  param: { module: user, action: detect_lang }

homepage:
  url: /:sf_culture/
  param: { module: main, action: index }
  requirements:
    sf_culture: (?:ru|en)

Яков's avatar
test    
Яков committed
11
12
13
14
homepage_discount:
  url: /:sf_culture/discount/:url/
  param: { module: main, action: index }

Яков's avatar
first  
Яков committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
search:
  url: /:sf_culture/search/
  param: { module: search, action: search }

article:
  url: /:sf_culture/article/
  param: { module: article, action: index }

article_show:
  url: /:sf_culture/article/:alias/
  param: { module: article, action: show }

review:
  url: /:sf_culture/review/
  param: { module: review, action: index }

Яков's avatar
test    
Яков committed
31
32
33
34
discount:
  url: /:sf_culture/discount/
  param: { module: discount, action: index }

Яков's avatar
first  
Яков committed
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
catalog:
  url: /:sf_culture/catalog/
  param: { module: catalog, action: index }

catalog_show:
  url: /:sf_culture/catalog/:alias/
  class: sfDoctrineRoute
  options: { model: Cat, type: object }
  param: { module: catalog, action: show }

product_show:
  url: /:sf_culture/product/:alias/
  class: sfDoctrineRoute
  options: { model: Product, type: object }
  param: { module: product, action: show }

basket:
  url: /:sf_culture/basket/
  param: { module: basket, action: index}

basket_complete:
  url: /:sf_culture/basket/complete/
  param: { module: basket, action: complete }

Яков's avatar
test    
Яков committed
59
60
61
62
basket_check_discount:
  url: /:sf_culture/basket/check_discount/
  param: { module: discount, action: check_discount }

Яков's avatar
first  
Яков committed
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
catalog_show_cat:
  url: /catalog/:alias/
  param: { module: catalog, action: show_cat }

basket_ajax:
  url: /basket/ajax/
  param: { module: basket, action: ajax }

catalog_show_prod:
  url: /product/:alias/
  param: { module: catalog, action: show_prod }

feedback:
  url: /feedback/
  param: { module: user, action: feedback }

exchange:
  url: /exchange/
  param: { module: exchange, action: exchange }

video:
  url: /:sf_culture/video/
  param: { module: video, action: index}

download:
  url: /download/:type/:id/
  param: { module: main, action: dl}

callback:
  url: /callback/
  param: { module: callback, action: new}

uploader:
  url: /uploader/
  param: { module: main, action: uploader }

Яков's avatar
test    
Яков committed
99
100
101
102
check_discount_term:
  url: /check_discount_term/
  param: { module: discount, action: check_discount_term }

Яков's avatar
first  
Яков committed
103
104
105
106
107
108
109
110
111
page_show:
  url: /:sf_culture/:alias/
  class: sfDoctrineRoute
  options: { model: Page, type: object }
  param: { module: pages, action: show }

sitemap:
  url: /sitemap.xml
  param: { module: pages, action: sitemap }