|
11 | 11 | | and its corresponding controller class/method. The segments in a |
12 | 12 | | URL normally follow this pattern: |
13 | 13 | | |
14 | | -| example.com/class/method/id/ |
| 14 | +| example.com/class/method/id/ |
15 | 15 | | |
16 | 16 | | In some instances, however, you may want to remap this relationship |
17 | 17 | | so that a different class/function is called than the one |
18 | 18 | | corresponding to the URL. |
19 | 19 | | |
20 | 20 | | Please see the user guide for complete details: |
21 | 21 | | |
22 | | -| http://codeigniter.com/user_guide/general/routing.html |
| 22 | +| http://codeigniter.com/user_guide/general/routing.html |
23 | 23 | | |
24 | 24 | | ------------------------------------------------------------------------- |
25 | 25 | | RESERVED ROUTES |
26 | 26 | | ------------------------------------------------------------------------- |
27 | 27 | | |
28 | 28 | | There are three reserved routes: |
29 | 29 | | |
30 | | -| $route['default_controller'] = 'welcome'; |
| 30 | +| $route['default_controller'] = 'welcome'; |
31 | 31 | | |
32 | 32 | | This route indicates which controller class should be loaded if the |
33 | 33 | | URI contains no data. In the above example, the "welcome" class |
34 | 34 | | would be loaded. |
35 | 35 | | |
36 | | -| $route['404_override'] = 'errors/page_missing'; |
| 36 | +| $route['404_override'] = 'errors/page_missing'; |
37 | 37 | | |
38 | 38 | | This route will tell the Router which controller/method to use if those |
39 | 39 | | provided in the URL cannot be matched to a valid route. |
40 | 40 | | |
41 | | -| $route['translate_uri_dashes'] = FALSE; |
| 41 | +| $route['translate_uri_dashes'] = FALSE; |
42 | 42 | | |
43 | 43 | | This is not exactly a route, but allows you to automatically route |
44 | 44 | | controller and method names that contain dashes. '-' isn't a valid |
45 | 45 | | class or method name character, so it requires translation. |
46 | 46 | | When you set this option to TRUE, it will replace ALL dashes in the |
47 | 47 | | controller and method URI segments. |
48 | 48 | | |
49 | | -| Examples: my-controller/index -> my_controller/index |
50 | | -| my-controller/my-method -> my_controller/my_method |
| 49 | +| Examples: my-controller/index -> my_controller/index |
| 50 | +| my-controller/my-method -> my_controller/my_method |
51 | 51 | */ |
52 | 52 | $route['default_controller'] = 'welcome'; |
53 | 53 | $route['404_override'] = ''; |
|
0 commit comments