blob: a151efbc32d0555e65d3a62c3769bca9025e0fa7 [file] [log] [blame]
darwineld8bef8a2014-02-11 20:13:22 +01001<?php
Derek Jonesf4a4bd82011-10-20 12:18:42 -05002/**
3 * CodeIgniter
4 *
Phil Sturgeon07c1ac82012-03-09 17:03:37 +00005 * An open source application development framework for PHP 5.2.4 or newer
Derek Jonesf4a4bd82011-10-20 12:18:42 -05006 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +02007 * This content is released under the MIT License (MIT)
Andrey Andreeve734b382012-03-26 13:42:36 +03008 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +02009 * Copyright (c) 2014, British Columbia Institute of Technology
Andrey Andreeve734b382012-03-26 13:42:36 +030010 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +020011 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this software and associated documentation files (the "Software"), to deal
13 * in the Software without restriction, including without limitation the rights
14 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 * copies of the Software, and to permit persons to whom the Software is
16 * furnished to do so, subject to the following conditions:
Derek Jonesf4a4bd82011-10-20 12:18:42 -050017 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +020018 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27 * THE SOFTWARE.
28 *
29 * @package CodeIgniter
30 * @author EllisLab Dev Team
darwinel871754a2014-02-11 17:34:57 +010031 * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/)
Andrey Andreevbdb96ca2014-10-28 00:13:31 +020032 * @copyright Copyright (c) 2014, British Columbia Institute of Technology (http://bcit.ca/)
33 * @license http://opensource.org/licenses/MIT MIT License
34 * @link http://codeigniter.com
35 * @since Version 1.0.0
Derek Jonesf4a4bd82011-10-20 12:18:42 -050036 * @filesource
37 */
darwineld8bef8a2014-02-11 20:13:22 +010038defined('BASEPATH') OR exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -050039
Derek Allard2067d1a2008-11-13 22:59:24 +000040/*
41| -------------------------------------------------------------------------
42| URI ROUTING
43| -------------------------------------------------------------------------
44| This file lets you re-map URI requests to specific controller functions.
45|
46| Typically there is a one-to-one relationship between a URL string
47| and its corresponding controller class/method. The segments in a
48| URL normally follow this pattern:
49|
Barry Mienydd671972010-10-04 16:33:58 +020050| example.com/class/method/id/
Derek Allard2067d1a2008-11-13 22:59:24 +000051|
52| In some instances, however, you may want to remap this relationship
53| so that a different class/function is called than the one
54| corresponding to the URL.
55|
56| Please see the user guide for complete details:
57|
58| http://codeigniter.com/user_guide/general/routing.html
59|
60| -------------------------------------------------------------------------
61| RESERVED ROUTES
62| -------------------------------------------------------------------------
63|
Andrey Andreev08fec7b2013-07-19 16:25:51 +030064| There are three reserved routes:
Derek Allard2067d1a2008-11-13 22:59:24 +000065|
66| $route['default_controller'] = 'welcome';
67|
68| This route indicates which controller class should be loaded if the
69| URI contains no data. In the above example, the "welcome" class
70| would be loaded.
Phil Sturgeon23174a62010-12-15 15:18:16 +000071|
72| $route['404_override'] = 'errors/page_missing';
73|
Andrey Andreev51b7acd2012-10-29 16:23:13 +020074| This route will tell the Router which controller/method to use if those
75| provided in the URL cannot be matched to a valid route.
Phil Sturgeon23174a62010-12-15 15:18:16 +000076|
Andrey Andreev08fec7b2013-07-19 16:25:51 +030077| $route['translate_uri_dashes'] = FALSE;
78|
79| This is not exactly a route, but allows you to automatically route
80| controller and method names that contain dashes. '-' isn't a valid
81| class or method name character, so it requires translation.
82| When you set this option to TRUE, it will replace ALL dashes in the
83| controller and method URI segments.
84|
85| Examples: my-controller/index -> my_controller/index
86| my-controller/my-method -> my_controller/my_method
Derek Allard2067d1a2008-11-13 22:59:24 +000087*/
Alex Bilbie1ef19192012-05-17 20:41:12 +010088$route['default_controller'] = 'welcome';
Phil Sturgeon23174a62010-12-15 15:18:16 +000089$route['404_override'] = '';
Andrey Andreev08fec7b2013-07-19 16:25:51 +030090$route['translate_uri_dashes'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +000091
Derek Allard2067d1a2008-11-13 22:59:24 +000092/* End of file routes.php */
Derek Jonesf0b39942010-03-25 10:08:20 -050093/* Location: ./application/config/routes.php */