PHP File Manager
Editing File: routes.php
<?php /** * CodeIgniter * * An open source application development framework for PHP 5.2.4 or newer * * NOTICE OF LICENSE * * Licensed under the Academic Free License version 3.0 * * This source file is subject to the Academic Free License (AFL 3.0) that is * bundled with this package in the files license_afl.txt / license_afl.rst. * It is also available through the world wide web at this URL: * http://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to obtain it * through the world wide web, please send an email to * licensing@ellislab.com so we can send you a copy immediately. * * @package CodeIgniter * @author EllisLab Dev Team * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) * @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0) * @link http://codeigniter.com * @since Version 1.0 * @filesource */ defined('BASEPATH') OR 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 are three 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 which controller/method to use if those | provided in the URL cannot be matched to a valid route. | | $route['translate_uri_dashes'] = FALSE; | | This is not exactly a route, but allows you to automatically route | controller and method names that contain dashes. '-' isn't a valid | class or method name character, so it requires translation. | When you set this option to TRUE, it will replace ALL dashes in the | controller and method URI segments. | | Examples: my-controller/index -> my_controller/index | my-controller/my-method -> my_controller/my_method */ // Routes for panel section if (SYSTEM_IS_PANEL) { $route['import'] = 'home/import'; $route['default_controller'] = 'home'; $route['404_override'] = 'home/error'; $route['translate_uri_dashes'] = TRUE; $route['login'] = 'account/login'; $route['logout'] = 'account/logout'; $route['news'] = 'entries/index'; $route['news/new'] = 'entries/edit'; $route['news/edit/(:num)'] = 'entries/edit/$1'; $route['news/categories'] = 'entries/categories'; $route['news/page/(:num)'] = 'entries/index/$1'; $route['locations'] = 'places/index'; $route['teams'] = 'clubs/index'; $route['teams/new'] = 'clubs/create'; $route['teams/edit/(:num)'] = 'clubs/edit/$1'; $route['teams/delete/(:num)'] = 'clubs/delete/$1'; $route['orders'] = 'queue'; $route['orders/(:num)'] = 'queue/index/$1'; $route['orders/(today|tomorrow|recurring|unpaid|paid|retail|to-dispatch|to-pack|awaiting-pickup|gone)'] = 'queue/index/$1'; $route['orders/(today|tomorrow|recurring|unpaid|paid|retail|to-dispatch|to-pack|awaiting-pickup|gone|approve)/(:num)'] = 'queue/index/$1/$2'; $route['orders/(recurring|unpaid)/(:num)'] = 'queue/index/$1/$2'; $route['orders/recurring/(edit|delete)/(:num)'] = 'queue/recurring/$1/$2'; $route['orders/recurring/edit/with-order/(:num)'] = 'queue/recurring/edit/$1/with-order'; $route['orders/(complete|dispatched|paid)/(:num)'] = 'queue/mark/$1/$2'; $route['orders/(complete|dispatched)/(:num)/(:any)'] = 'queue/mark/$1/$2/$3'; $route['orders/payment/(delete|invoice)/(:num)'] = 'queue/payment/$1/$2'; $route['orders/location/(:any)'] = 'queue/index/location/$1'; $route['orders/location/(:any)/with-trays'] = 'queue/index/location/$1/trays'; $route['orders/edit/with-customer/(:num)'] = 'queue/edit/customer/$1'; $route['orders/delete/(:num)'] = 'queue/delete/$1'; $route['orders/customer/(:num)'] = 'queue/index/customer/$1'; $route['orders/customer/(:num)/(:num)'] = 'queue/index/customer/$1/$2'; $route['orders/status/(:any)'] = 'queue/product/$1'; $route['orders/status/(:any)/(:num)'] = 'queue/product/$1/$2'; $route['orders/review'] = 'queue/review'; $route['orders/review/(:num)'] = 'queue/review/$1'; $route['orders/cancel-shipment/(:num)'] = 'queue/cancel_shipping/$1'; $route['ups-shipping'] = 'queue/ups_shipping'; $route['interlink-shipping'] = 'queue/interlink_shipping'; $route['orderbook'] = 'queue/book'; $route['orders/(.*)'] = 'queue/$1'; $route['products'] = 'goods'; $route['products/add'] = 'goods/add'; $route['products/view'] = 'goods/view'; $route['products/view/(:num)'] = 'goods/view/$1'; $route['products/delete/(:num)'] = 'goods/delete/product/$1'; $route['products/delete-option/(:num)'] = 'goods/delete/option/$1'; $route['products/edit'] = 'goods/edit'; $route['products/edit/with-category/(:num)'] = 'goods/edit/with-category/$1'; $route['products/edit-category'] = 'goods/edit/category'; $route['products/edit-category/(:num)'] = 'goods/edit/category/$1'; $route['products/delete-category/(:num)'] = 'goods/delete/category/$1'; $route['products/add-option/(:num)'] = 'goods/edit/option/new/$1'; $route['products/edit-option/(:num)'] = 'goods/edit/option/edit/$1'; $route['products/global-options/(:num)'] = 'goods/edit/global/edit/$1'; $route['products/([\w-]+)'] = 'goods/index/$1'; $route['products/(:num)'] = 'goods/index/$1'; $route['products/([\w-]+)/(:num)'] = 'goods/index/$1/$2'; $route['products/(.*)'] = 'goods/$1'; $route['customers'] = 'people'; $route['customers/(:num)'] = 'people/index/$1'; $route['customers/(:num)/orders/(:num)?'] = 'people/index/$1/orders/$2'; $route['customers/view/(:num)/notes'] = 'people/notes/$1'; $route['customers/view/(:num)/notes/(:num)'] = 'people/notes/$1/$2'; $route['customers/notes/delete/(:num)'] = 'people/notes/delete/$1'; $route['customers/view/(:num)/agreement/edit'] = 'people/agreements/$1/edit'; $route['customers/view/(:num)/agreement/delete/(:num)'] = 'people/agreements/$1/delete/$3'; $route['customers/view/(:num)/payments'] = 'people/payments/$1'; $route['customers/view/(:num)/payments/(:num)'] = 'people/payments/$1/$2'; $route['customers/view/(:num)/payments/(confirm|delete-order-payment|delete-payment)/(:num)'] = 'people/payments/$1/$2/$3'; $route['customers/view/(:num)/payments/confirm/(:num)/(:num)'] = 'people/payments/$1/confirm/$2/$3'; $route['customers/(archived|retail)'] = 'people/index/$1'; $route['customers/(archived|retail)/(:num)'] = 'people/index/$1/$2'; $route['customers/(archive|unarchive)/(:num)'] = 'people/archives/$2/$1'; $route['customers/(.*)'] = 'people/$1'; $route['reports'] = 'report'; $route['reports/download/(:num)'] = 'report/download/$1'; $route['reports/templates'] = 'report/templates/index'; $route['reports/templates/(:num)'] = 'report/templates/index/$1'; $route['reports/templates/edit'] = 'report/templates/edit'; $route['reports/templates/edit/(:num)'] = 'report/templates/edit/$1'; $route['reports/(rerun|delete)/(:num)'] = 'report/$1/$2'; $route['reports/(:num)/([a-z]+)'] = 'report/index/year/$1/month/$2'; $route['reports/(:num)'] = 'report/index/$1'; $route['reports/(.*)'] = 'report/$1'; $route['calendar'] = 'schedules'; $route['calendar/([0-9]{4})/([0-9]{2})'] = 'schedules/index/year/$1/month/$2'; $route['calendar/(.*)'] = 'schedules/$1'; $route['events'] = 'occasions'; $route['events/(.*)'] = 'occasions/$1'; $route['users'] = 'user'; $route['users/(.*)'] = 'user/$1'; $route['stocks'] = 'levels'; $route['stocks/(:num)'] = 'levels/index/$1'; $route['stocks/(out-of-stock|low|moderate|high)'] = 'levels/index/$1'; $route['stocks/(out-of-stock|low|moderate|high)/(:num)'] = 'levels/index/$1/$2'; $route['stocks/(.*)'] = 'levels/$1'; $route['accounting'] = 'sales'; $route['accounting/view/(:num)/date/(:num)/(:num)/(:num)'] = 'sales/view/tab/$1/date/$2/$3/$4'; $route['accounting/edit/(:num)'] = 'sales/file/$1'; $route['accounting/accounts/new'] = 'sales/accounts/new'; $route['accounting/accounts/edit/(:num)'] = 'sales/accounts/edit/$1'; $route['accounting/(.*)'] = 'sales/$1'; $route['assets/cache.manifest'] = 'tools/manifest'; $route['signpad'] = 'tools/signpad'; $route['page-notes'] = 'settings/notes'; $route['page-notes/(delete|solve)/(:num)'] = 'settings/notes/$1/$2'; $route['offers'] = 'coupons'; $route['offers/(.*)'] = 'coupons/$1'; $route['pages'] = 'content'; $route['pages/(.*)'] = 'content/$1'; $route['sidebar'] = 'content/blocks/edit/1'; $route['email-templates'] = 'template'; $route['email-templates/(.*)'] = 'template/$1'; $route['print'] = 'printer'; $route['print/(.*)'] = 'printer/$1'; $route['sandbox'] = 'home/sandbox'; $route['cron/(.*)'] = 'cron/index/$1'; } else { $route['default_controller'] = 'website'; $route['404_override'] = 'website/error'; $route['translate_uri_dashes'] = FALSE; $route['(products|contact)'] = 'website/index'; $route['products/(:any)'] = 'website/index'; $route['checkout/complete'] = 'website/complete'; $route['cron/(.*)'] = 'cron/index/$1'; $route['sitemap.xml'] = 'website/sitemap'; $route['(.*)/(:num)'] = 'website/$1/$2'; $route['(.*)'] = 'website/$1'; } /* End of file routes.php */ /* Location: ./application/config/routes.php */
Cancel