Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
| 2 | /* |
| 3 | | ------------------------------------------------------------------------- |
| 4 | | URI ROUTING |
| 5 | | ------------------------------------------------------------------------- |
| 6 | | This file lets you re-map URI requests to specific controller functions. |
| 7 | | |
| 8 | | Typically there is a one-to-one relationship between a URL string |
| 9 | | and its corresponding controller class/method. The segments in a |
| 10 | | URL normally follow this pattern: |
| 11 | | |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame^] | 12 | | example.com/class/method/id/ |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 13 | | |
| 14 | | In some instances, however, you may want to remap this relationship |
| 15 | | so that a different class/function is called than the one |
| 16 | | corresponding to the URL. |
| 17 | | |
| 18 | | Please see the user guide for complete details: |
| 19 | | |
| 20 | | http://codeigniter.com/user_guide/general/routing.html |
| 21 | | |
| 22 | | ------------------------------------------------------------------------- |
| 23 | | RESERVED ROUTES |
| 24 | | ------------------------------------------------------------------------- |
| 25 | | |
Derek Jones | bb76839 | 2010-03-05 11:32:53 -0600 | [diff] [blame] | 26 | | There is one reserved routes: |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 27 | | |
| 28 | | $route['default_controller'] = 'welcome'; |
| 29 | | |
| 30 | | This route indicates which controller class should be loaded if the |
| 31 | | URI contains no data. In the above example, the "welcome" class |
| 32 | | would be loaded. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 33 | */ |
| 34 | |
| 35 | $route['default_controller'] = "welcome"; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 36 | |
| 37 | |
| 38 | /* End of file routes.php */ |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 39 | /* Location: ./application/config/routes.php */ |