<?php

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:

|

|	https://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

*/

$route['default_controller'] = 'Front';

$route['404_override'] = '';

$route['translate_uri_dashes'] = FALSE;

$route['login']='Welcome/login';

$route['logout']='Welcome/logout';

$route['dashboard']='Welcome/dashboard';



$route['aboutus']='Front/aboutus';

$route['contact']='Front/contact';
$route['thanks']='Front/thanks';






$route['share-cv']='Front/share_cv';

$route['share-requirement']='Front/share_requirement';



$route['all-requirement']='Front/all_requirement';



$route['all-news']='Front/all_news';

$route['news-details']='Front/news_details';







$route['signin']='Front/signin';

$route['signup']='Front/signup';

$route['user_profile']='Front/user_profile';

$route['my-child']='Front/my_child';

$route['my-donate-history']='Front/my_donate_history';

$route['program-update']='Front/program_update';

$route['change-password']='Front/change_password';

$route['edit-profile']='Front/edit_profile';

$route['user_logout']='Front/user_logout';

$route['forget-password']='Front/forget_password';

$route['news/(:num)']='Front/news/$1';



$route['enquiry']='Front/enquiry';

$route['tnc']='Front/tnc';

$route['package_enq']='Trip/package_enq';

$route['package_enq/(:num)']='Trip/package_enq/$1';



$route['tour/(:any)/(:num)']='Front/tour/$1/$2';

$route['packages/(:any)/(:num)/(:num)']='Front/packages/$1/$2/$3';

$route['package_details/(:any)']='Front/package_details/$1';



$route['howit']='Gallary/offer';

$route['howit/(:num)']='Gallary/offer/$1';







$route['view_destination/(:num)']='Destination/index/$1';

$route['add_destination']='Destination/add';

$route['view_destination']='Destination/index';

$route['view_destination/(:num)']='Destination/index/$1';

$route['edit_destination/(:num)']='Destination/edit/$1';





$route['add_news']='newsController/add_news';

$route['view_news']='newsController/index';

$route['edit_news/(:num)']='newsController/edit_news/$1';

$route['delete_news/(:num)']='newsController/delete_news/$1';



$route['add_testimonial']='TestiController/add_testimonial';

$route['view_testimonial']='TestiController/view_testimonial';

$route['view_testimonial/(:num)']='TestiController/view_testimonial/$1';

$route['edit_testi/(:num)']='TestiController/edit_testi/$1';



$route['add_team']='Team/add';

$route['view_team']='Team/view';

$route['view_team/(:num)']='Team/view/$1';

$route['edit_team/(:num)']='Team/edit/$1';





$route['add_why']='Why/add';

$route['view_why']='Why/view';

$route['view_why/(:num)']='Why/view/$1';

$route['edit_why/(:num)']='Why/edit/$1';



$route['add_about']='About/add';

$route['view_about']='About/view';

$route['view_about/(:num)']='About/view/$1';

$route['edit_about/(:num)']='About/edit/$1';







$route['gal/add_image']='Gallary/add';

$route['gal']='Gallary/index';

$route['gal/(:num)']='Gallary/index/$1';

$route['gal/delete/(:any)']='Gallary/delete/$1';





$route['trip']='Trip/index';

$route['trip/(:num)']='Trip/index/$1';

$route['add_trip']='Trip/add';

$route['view_trip/(:num)']='Trip/view/$1';

$route['edit_trip/(:num)']='Trip/edit/$1';



$route['profile']='Welcome/profile';

$route['change_pass']='Welcome/change_pass';

$route['save_password']='Welcome/save_password';



$route['admin/news']='News/index';

$route['admin/news/add']='News/add';

$route['admin/news/edit/(:num)']='News/edit/$1';

$route['admin/news/delete/(:num)']='News/delete/$1';

$route['admin/news/view/(:num)']='News/view/$1';



$route['admin/requirement']='Requirement/index';

$route['admin/requirement/view/(:num)']='Requirement/view/$1';
$route['admin/requirement/edit/(:num)']='Requirement/edit/$1';

$route['admin/requirement/delete/(:num)']='Requirement/delete/$1';



$route['admin/requirement/status_change']='Requirement/status_change';



$route['admin/sharecv']='Sharecv/index';

$route['admin/sharecv/view/(:num)']='Sharecv/view/$1';

$route['admin/sharecv/delete/(:num)']='Sharecv/delete/$1';