SHARE
TWEET

route

a guest Nov 9th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. /*
  3. | -------------------------------------------------------------------------
  4. | URI ROUTING
  5. | -------------------------------------------------------------------------
  6. | This file lets you re-map URI requests to specific controller functions.
  7. |
  8. | Typically there is a one-to-one relationship between a URL string
  9. | and its corresponding controller class/method. The segments in a
  10. | URL normally follow this pattern:
  11. |
  12. |   example.com/class/method/id/
  13. |
  14. | In some instances, however, you may want to remap this relationship
  15. | so that a different class/function is called than the one
  16. | corresponding to the URL.
  17. |
  18. | Please see the user guide for complete details:
  19. |
  20. |   http://codeigniter.com/user_guide/general/routing.html
  21. |
  22. | -------------------------------------------------------------------------
  23. | RESERVED ROUTES
  24. | -------------------------------------------------------------------------
  25. |
  26. | There area two reserved routes:
  27. |
  28. |   $route['default_controller'] = 'welcome';
  29. |
  30. | This route indicates which controller class should be loaded if the
  31. | URI contains no data. In the above example, the "welcome" class
  32. | would be loaded.
  33. |
  34. |   $route['404_override'] = 'errors/page_missing';
  35. |
  36. | This route will tell the Router what URI segments to use if those provided
  37. | in the URL cannot be matched to a valid route.
  38. |
  39. */
  40.  
  41. $route['default_controller']    = "Home";
  42. $route['404_override']          = 'Home';
  43.  
  44. //Custome Root ***************************************************************
  45. $route['dwpanel']                       = 'backend/cpanelx';
  46. $route['jpanel']                        = 'backend/cpanelx';
  47. $route['jpanel/(:any)/(:any)']          = 'backend/$1/$2';
  48. $route['jpanel/(:any)']                 = 'backend/$1';
  49. $route['admin']                           = 'backend/cpanelx';
  50. $route['admin/(:any)/(:any)']             = 'backend/$1/$2';
  51. $route['admin/(:any)']                    = 'backend/$1';
  52.  
  53. $route['sendMessage']          = $route['default_controller'].'/sendMessage';
  54. $route["$1"]                   = '$1';
  55. $route["$1/$2"]                = '$1/$2';
  56. $route["search?(:any)"]        = 'mainpage/search';
  57.  
  58. /**
  59. $route["standar-pedoman?(:any)"]          = "page/download";
  60. $route["page?(:any)"]          = "page/statis";
  61. $route["about?(:any)"]         = "page/about";
  62. $route["tentang?(:any)"]       = "page/about";
  63. $route["mitra?(:any)"]         = "page/partners";
  64. $route["partners?(:any)"]      = "page/partners";
  65. $route["acara?(:any)"]         = "page/events";
  66. $route["events?(:any)"]        = "page/events";
  67. $route["news?(:any)"]          = "page/news";
  68. $route["berita?(:any)"]        = "page/news";
  69. $route["contact?(:any)"]       = "page/contact";
  70. $route["kontak?(:any)"]        = "page/contact";
  71. $route["organisasi?(:any)"]    = "page/organisasi";
  72. $route["organizations?(:any)"] = "page/organisasi";
  73. $route["gallery?(:any)"]       = "page/gallery";
  74. $route["galeri?(:any)"]        = "page/gallery";
  75. **/
  76. /* End of file routes.php */
  77. /* Location: ./application/config/routes.php */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top