PHP Classes

File: Web/application/config/routes.php

Recommend this page to a friend!
  Classes of Burge Lab   Burge CMF   Web/application/config/routes.php   Download  
File: Web/application/config/routes.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Burge CMF
Framework to publish managed content
Author: By
Last change: Module Manager > Cron > Logger
Module Manager > Customer > Module Controler > executes all modules who have something to do as cron
Date: 6 years ago
Size: 3,858 bytes
 

Contents

Class file image Download
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
| http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
| $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
| $route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/
$route['default_controller'] = "CE_Home";

if(
ENVIRONMENT==='development')
{
   
$route[ADMIN_URL_FOLDER.'/install'] ="AE_Setup/install";
   
$route[ADMIN_URL_FOLDER.'/uninstall'] ="AE_Setup/uninstall";
}

$route[ADMIN_URL_FOLDER] ="AE_Dashboard";
$route[ADMIN_URL_FOLDER."/dashboard"] ="AE_Dashboard";
$route[ADMIN_URL_FOLDER."/user"] ="AE_Users/index/0";
$route[ADMIN_URL_FOLDER."/user/(\d+)"] ="AE_Users/index/$1";
$route[ADMIN_URL_FOLDER."/user/search/(.*)"] ="AE_Users/search/$1";
$route[ADMIN_URL_FOLDER."/login"] ="AE_Login";
$route[ADMIN_URL_FOLDER."/change_pass"] ="AE_Change_Pass";
$route[ADMIN_URL_FOLDER."/logout"] ="AE_Logout";
$route[ADMIN_URL_FOLDER."/access"] ="AE_Access/index/0";
$route[ADMIN_URL_FOLDER."/access/(\-?\d+)"] ="AE_Access/index/$1";

$route[ADMIN_URL_FOLDER."/module"] ="AE_Module";
//$route["bcron_1388"] ="CE_Module/cron";

$route[ADMIN_URL_FOLDER."/hit_counter"] ="AE_Hit_Counter";
$route[ADMIN_URL_FOLDER."/log"] ="AE_Log";
$route[ADMIN_URL_FOLDER."/constant"] ="AE_Constant";

$route[ADMIN_URL_FOLDER."/post"] ="AE_Post";
$route[ADMIN_URL_FOLDER."/post/(\d+)"] ="AE_Post/details/$1";
$route["post-(\d+)/([^\/]+)/?"] ="CE_Post/index/$1/$2";
$route["post-(\d+)/([^\/]+)/([^\/]*)/?"] ="CE_Post/index/$1/$2/$3";

$route[ADMIN_URL_FOLDER."/file"] ="AE_File";
$route[ADMIN_URL_FOLDER."/file/inline"] ="AE_File/inline";
$route[ADMIN_URL_FOLDER."/file/conf.json"] ="AE_File/conf";
$route[ADMIN_URL_FOLDER."/file/([^\/]+)"] ="AE_File/action/$1";

$route[ADMIN_URL_FOLDER."/category"] ="AE_Category";
$route[ADMIN_URL_FOLDER."/category/organize"]="AE_Category/organize";
$route[ADMIN_URL_FOLDER."/category/(\d+)"] ="AE_Category/details/$1";
$route["category-(\d+)/([^\/]+)/?"] ="CE_Category/index/$1/$2";
$route["category-(\d+)/([^\/]+)/([^\/]*)/?"] ="CE_Category/index/$1/$2/$3";
$route["category-(\d+)/([^\/]+)/([^\/]*)/(\d+)"] ="CE_Category/index/$1/$2/$3/$4";

$route[ADMIN_URL_FOLDER."/contact_us"] ="AE_Contact_Us";
$route[ADMIN_URL_FOLDER."/contact_us/send_new"] ="AE_Contact_Us/send_new";
$route[ADMIN_URL_FOLDER."/contact_us/(\d+)"] ="AE_Contact_Us/details/$1";
$route["contact_us"] ="CE_Contact_Us";

$route[ADMIN_URL_FOLDER."/footer_link"] ="AE_Footer_Link";

$route["retry"]="retry";
$route["watermark"]="CE_Watermark";

$route['(((:any)/)*:any)']="CE_Home/redirect";

/* End of file routes.php */
/* Location: ./application/config/routes.php */