routes.php

Go to the documentation of this file.
00001 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
00002 /*
00003 | -------------------------------------------------------------------------
00004 | URI ROUTING
00005 | -------------------------------------------------------------------------
00006 | This file lets you re-map URI requests to specific controller functions.
00007 |
00008 | Typically there is a one-to-one relationship between a URL string
00009 | and its corresponding controller class/method. The segments in a
00010 | URL normally follow this pattern:
00011 |
00012 |       example.com/class/method/id/
00013 |
00014 | In some instances, however, you may want to remap this relationship
00015 | so that a different class/function is called than the one
00016 | corresponding to the URL.
00017 |
00018 | Please see the user guide for complete details:
00019 |
00020 |       http://codeigniter.com/user_guide/general/routing.html
00021 |
00022 | -------------------------------------------------------------------------
00023 | RESERVED ROUTES
00024 | -------------------------------------------------------------------------
00025 |
00026 | There are two reserved routes:
00027 |
00028 |       $route['default_controller'] = 'welcome';
00029 |
00030 | This route indicates which controller class should be loaded if the
00031 | URI contains no data. In the above example, the "welcome" class
00032 | would be loaded.
00033 |
00034 |       $route['scaffolding_trigger'] = 'scaffolding';
00035 |
00036 | This route lets you set a "secret" word that will trigger the
00037 | scaffolding feature for added security. Note: Scaffolding must be
00038 | enabled in the controller in which you intend to use it.   The reserved 
00039 | routes must come before any wildcard or regular expression routes.
00040 |
00041 */
00042 
00043 $route['default_controller'] = "welcome";
00044 $route['scaffolding_trigger'] = "";
00045 
00046 
00047 /* End of file routes.php */
00048 /* Location: ./system/application/config/routes.php */