Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame^] | 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
| 5 | * An open source application development framework for PHP 5.1.6 or newer |
| 6 | * |
| 7 | * NOTICE OF LICENSE |
| 8 | * |
| 9 | * Licensed under the Academic Free License version 3.0 |
| 10 | * |
| 11 | * This source file is subject to the Open Software License (OSL 3.0) that is |
| 12 | * bundled with this package in the files license_afl.txt / license_afl.rst. |
| 13 | * It is also available through the world wide web at this URL: |
| 14 | * http://opensource.org/licenses/AFL-3.0 |
| 15 | * If you did not receive a copy of the license and are unable to obtain it |
| 16 | * through the world wide web, please send an email to |
| 17 | * licensing@ellislab.com so we can send you a copy immediately. |
| 18 | * |
| 19 | * @package CodeIgniter |
| 20 | * @author EllisLab Dev Team |
| 21 | * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/) |
| 22 | * @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0) |
| 23 | * @link http://codeigniter.com |
| 24 | * @since Version 1.0 |
| 25 | * @filesource |
| 26 | */ |
| 27 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 28 | /* |
| 29 | | ------------------------------------------------------------------------- |
| 30 | | URI ROUTING |
| 31 | | ------------------------------------------------------------------------- |
| 32 | | This file lets you re-map URI requests to specific controller functions. |
| 33 | | |
| 34 | | Typically there is a one-to-one relationship between a URL string |
| 35 | | and its corresponding controller class/method. The segments in a |
| 36 | | URL normally follow this pattern: |
| 37 | | |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 38 | | example.com/class/method/id/ |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 39 | | |
| 40 | | In some instances, however, you may want to remap this relationship |
| 41 | | so that a different class/function is called than the one |
| 42 | | corresponding to the URL. |
| 43 | | |
| 44 | | Please see the user guide for complete details: |
| 45 | | |
| 46 | | http://codeigniter.com/user_guide/general/routing.html |
| 47 | | |
| 48 | | ------------------------------------------------------------------------- |
| 49 | | RESERVED ROUTES |
| 50 | | ------------------------------------------------------------------------- |
| 51 | | |
MarcosCoelho | cb212c6 | 2011-08-31 14:59:19 -0300 | [diff] [blame] | 52 | | There are two reserved routes: |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 53 | | |
| 54 | | $route['default_controller'] = 'welcome'; |
| 55 | | |
| 56 | | This route indicates which controller class should be loaded if the |
| 57 | | URI contains no data. In the above example, the "welcome" class |
| 58 | | would be loaded. |
Phil Sturgeon | 23174a6 | 2010-12-15 15:18:16 +0000 | [diff] [blame] | 59 | | |
| 60 | | $route['404_override'] = 'errors/page_missing'; |
| 61 | | |
| 62 | | This route will tell the Router what URI segments to use if those provided |
| 63 | | in the URL cannot be matched to a valid route. |
| 64 | | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 65 | */ |
| 66 | |
| 67 | $route['default_controller'] = "welcome"; |
Phil Sturgeon | 23174a6 | 2010-12-15 15:18:16 +0000 | [diff] [blame] | 68 | $route['404_override'] = ''; |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 69 | |
| 70 | |
| 71 | /* End of file routes.php */ |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 72 | /* Location: ./application/config/routes.php */ |