BBnepal-Accounts/application/config/routes.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

374 lines
15 KiB
PHP

<?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
*/
//student portal
$route['student/admission-process'] = 'Student/admission_process';
$route['student/student-reset'] = 'Student/student_reset';
$route['student/my-classes'] = 'Student/my_classes';
$route['student/my-calendar'] = 'Student/my_calendar';
$route['student/my-assignments'] = 'Student/my_assignments';
$route['student/my-tests-exams'] = 'Student/my_tests_exams';
$route['student/my-grades'] = 'Student/my_grades';
$route['student/my-notifications'] = 'Student/my_notifications';
$route['student/my-syllabus'] = 'Student/my_syllabus';
$route['student/attendance-detail'] = 'Student/attendance_detail';
$route['student/view-test-detail/(:num)'] = 'Student/view_test_detail';
$route['student/question-paper/(:num)'] = 'Student/question_paper';
$route['student/view-grade-detail/(:num)'] = 'Student/view_grade_detail';
$route['student/my-profile'] = 'Student/my_profile';
$route['student/addedit-apllication'] = 'Student/addedit_apllication';
$route['student/paymentSuccess'] = 'Student/paymentSuccess';
$route['student/paymentFail'] = 'Student/paymentFail';
/*$route['student/paypalipn'] = 'Student/paypalipn';
$route['student/ipn'] = 'Student/ipn';*/
$route['student/admission_payment'] = 'Student/admission-payment';
$route['student/get_installdetails'] = 'Student/get-installdetails';
$route['student/paypalipn_admission'] = 'Student/paypalipn-admission';
$route['admin'] = 'Admin/index';
$route['admin-logout'] = 'Admin/admin_logout';
//admin portal
$route['admin/ae-subject/(:any)'] = 'Admin/add_edit_subject/$1';
$route['admin/fee-installment'] = 'Admin/fee_installment';
$route['admin/add-edit-course/(:any)'] = 'Admin/add_edit_course/$1';
$route['admin/add-edit-teacher/(:any)'] = 'Admin/add_edit_teacher/$1';
$route['admin/add-edit-classroom/(:any)'] = 'Admin/add_edit_classroom/$1';
$route['admin/fee-installment'] = 'Admin/fee_installment/$1';
$route['admin/ae-fee-installment/(:any)'] = 'Admin/add_edit_fee_installment/$1';
$route['admin/addedit-installment/(:any)'] = 'Admin/addedit_installment/$1';
$route['admin/get-application/(:any)'] = 'Admin/get_application/$1';
$route['admin/view-application/(:any)'] = 'Admin/view_application/$1';
$route['admin/download_applicant/(:any)'] = 'Admin/download_applicant/$1';
$route['admin/student_notassigned/(:any)'] = 'Admin/students-notassigned/$1';
$route['admin/view_classstudent/(:any)'] = 'Admin/view-classstudent/$1';
$route['default_controller'] = 'welcome';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
// Routes - Afras khan
//START - Nandini -------------------------------------------------------------------------------------
$route['admin/batches'] = 'Admin/batches';
$route['admin/add-edit-batch/(:any)'] = 'Admin/add_edit_batch/$1';
$route['admin/assign-all-fees'] = 'Admin/assign_all_fees_atonce';
$route['admin/student-fees/(:any)'] = 'Admin/assign_student_fees/$1';
$route['admin/db-backups'] = 'Admin/database_backups';
$route['admin/create-db-backups'] = 'Admin/create_database_backup';
$route['admin/delete-db-backup/(:any)'] = 'Admin/delete_database_backup/$1';
$route['admin/assign-additional-subjects'] = 'Admin/assign_additional_subjects_to_students';
$route['admin/assign-optional-subjects'] = 'Admin/assign_optional_subjects_to_students';
//END - Nandini -------------------------------------------------------------------------------------
// Section Routes
$route['admin/sections'] = 'Admin/section';
$route['admin/ae-section/(:any)'] = 'Admin/add_edit_section/$1';
$route['admin/delete-section/(:any)'] = 'Admin/deleteSection/$1';
// Notification Routes
$route['admin/send-notification'] = 'Admin/sendNotifications';
$route['admin/view-notification/(:any)'] = 'Admin/viewNotifications/$1';
// Routes Ends- Afras khan
// Routes start - shivu
$route['admin/subjects'] = 'Admin/subject';
$route['admin/ae-subject/(:any)'] = 'Admin/add_edit_subject/$1';
$route['admin/assign-syllabus/(:any)'] = 'Admin/assign_syllabus/$1';
// classroom
$route['admin/classroom'] = 'Admin/classroom';
$route['admin/ae-classroom/(:any)'] = 'Admin/add_edit_classroom/$1';
$route['admin/assign-students/(:any)'] = 'Admin/assign_students/$1';
$route['admin/assign-to-classroom/(:any)'] = 'Admin/assign_classroom/$1';
// Routes end - shivu
//teacher portal
//shankar code
$route['teacher/asgn_cls/(:num)'] = 'Teacher/assignment_class';
$route['teacher/assignment_cls/(:num)/(:num)'] = 'Teacher/assignment_class';
$route['teacher/teacher_assignment_view/(:num)/(:num)'] = 'teacher/teachers_assignments_review';
$route['teacher/date_search/(:num)/(:num)/(:num)/(:num)'] = 'Teacher/assignment_class';
//shankar end
// Courses Routes - Afras Khan
$route['admin/courses'] = 'admin/course';
$route['admin/ae-course/(:any)'] = 'Admin/add_edit_course/$1';
$route['admin/delete-course/(:any)'] = 'Admin/delete_course/$1';
// Courses Routes End - Afras Khan
// Notification Routes - Afras Khan
$route['admin/notifications'] = 'Admin/notifications';
$route['admin/send-notification'] = 'Admin/send_notifications';
$route['admin/view-notification/(:any)'] = 'Admin/view_notification/$1';
// Notification Routes Ends - Afras Khan
//Admin Roles - Afras Khan
$route['admin/roles/list'] = 'admin/roles';
$route['admin/roles/ae-role/(:any)'] = 'Admin/add_edit_roles/$1';
//User Routes - Afras Khan
$route['admin/users/list'] = 'admin/users';
$route['admin/users/ae-user/(:any)'] = 'Admin/add_edit_users/$1';
// Forgot Password Routes
$route['admin/forgot-password'] = 'admin/forgot_password';
$route['admin/reset-password/(:any)'] = 'admin/reset_admin_password/$1';
//Reset Password shankar code 25-10-21
$route['student/reset-password'] = 'student/student_fp_password';
$route['student/check-valid-email'] = 'student/fp_check_is_emailid_valid';
$route['student/reset-email'] = 'student/send_email_reset_password';
$route['student/create-password/(:any)'] = 'student/student_create_password/$1';
$route['student/student-reset-password'] = 'student/change_student_password';
// shankar code for teacher view 27-10-21
$route['admin/view-teacher/(:num)'] = 'Admin/view_teacher/$1';
// shankar code for teacher view syllabus 01-11-21
$route['teacher/view-syllabus'] = 'Teacher/teacher_syllabus';
// Students Information Routes
$route['student/my-info'] = 'student/view_info';
$route['student/my-course'] = 'student/view_course';
$route['student/my-payments'] = 'student/view_payments';
//Fee installments - Afras khan
$route['admin/ae-fee-course/(:num)'] = 'admin/add_edit_fee_course/$1';
$route['admin/fee-course'] = 'admin/fee_course';
$route['admin/fee-types'] = 'admin/fee_types';
$route['admin/expense-types'] = 'admin/expense_types';
// Teacher Module - MyGrade Routes
$route['teacher/teacher-grade'] = 'teacher/teacher_grade';
//Student's Information - Admin Module
$route['admin/view-student/(:num)'] = 'admin/view_student/$1';
$route['admin/editInfo-student/(:num)'] = 'admin/editInfo_Student/$1';
$route['admin/view-student-payments/(:num)'] = 'admin/view_student_payments/$1';
//Reset Password teacher shankar code 18/11/21
$route['teacher/teacher-reset'] = 'teacher/teacher_reset_view';
$route['teacher/check-valid-email'] = 'teacher/fp_check_is_emailid_valid';
$route['teacher/reset-email'] = 'teacher/send_email_reset_password';
$route['teacher/create-password/(:any)'] = 'teacher/teacher_create_password/$1';
$route['teacher/teacher-reset-password'] = 'teacher/teacher_student_password';
// report by shivakumar
$route['admin/payment-overview/(:num)'] = 'admin/payment_overview/$1';
$route['admin/report-recent-transactions'] = 'admin/report_recent_transactions';
$route['admin/report-overview'] = 'admin/report_overview';
$route['admin/getreport'] = 'admin/getreportBydate';
$route['admin/getAnnualReportDetails'] = 'admin/getAnnualReportDetails';
$route['admin/invoice-reports'] = 'admin/invoice_reports';
$route['admin/invoice-fee-reports'] = 'admin/invoice_fee_reports';
$route['admin/fee-revert-reports'] = 'admin/fee_revert_reports';
$route['admin/due-reports'] = 'admin/due_fee_reports';
$route['admin/total-due-report'] = 'admin/total_due_report';
// Hostel
$route['student/hostel'] = 'student/hostel';
$route['student/hostel-fee'] = 'student/hostel_fee';
//bus_payment_method - shankar
$route['student/bus-facility'] = 'student/BusFacility';
$route['student/bus-details'] = 'student/BusFacilityDetails';
$route['student/bus-fee'] = 'student/bus_fee_management';
//start keerthi code
$route['api/security-login'] = 'api/Transport_Api/securityLogin';
$route['api/myinfo'] = 'api/Transport_Api/myInfo';
$route['api/addcheckinoutinfo'] = 'api/Transport_Api/addCheckInOutInfo';
$route['api/getcheckinoutinfo'] = 'api/Transport_Api/getCheckInOutInfo';
$route['api/getclassfilter'] = 'api/Transport_Api/getClassFilter';
$route['api/getduplicatecheckinoutinfo'] = 'api/Transport_Api/getDuplicateCheckInOutInfo';
//end keerthi code
// start by shivu
$route['admin/add-new-application'] = 'Admin/add_new_application';
$route['admin/fee-collection/(:any)'] = 'Admin/fee_collection/$1';
// end by shivu
//Shankar code for download csv File
$route['admin/downloadCsvFile'] = 'Admin/download_Csv_File';
//shankar ccode for admin change password
$route['admin/admin-change-password'] = 'Admin/change_admin_password';
$route['teacher/teacher-change-password'] = 'Teacher/changeTeacher_password';
// Shivakumar code for Attendance (admin section) start by Shivu
$route['admin/results'] = 'Admin/getstudentsresults';
$route['admin/add-student'] = 'Admin/newstudentview';
$route['admin/add-new-student'] = 'Admin/addnewstudent';
// end by shivu
//shankar code for Student changePassword
$route['admin/student-change-password'] = 'Admin/studentChangePassword';
//suspend student
$route['admin/suspend-student'] = 'admin/suspend_Student';
$route['admin/enable-student'] = 'admin/student_suspend_list';
// Teacher's Leave
$route['teacher/leaves'] = 'teacher/leaves';
$route['teacher/view-leave/(:any)'] = 'teacher/view_leave/$1';
// Transport module
$route['admin/assign-routes'] = 'admin/assign_routes_students';
//Admin New Installments
$route['admin/manage-installments/(:num)'] = 'admin/manage_installments_add/$1';
$route['admin/update-installments/(:num)'] = 'admin/manage_installments_update/$1';
//shankar route for bus route 12-04-22
$route['student/route-list-batch'] = 'student/routes_list_batch_wise';
// Hostel Modules
$route['admin/assign-to-hostel'] = 'admin/students_assign_to_hostel';
$route['getSchoolData'] = 'api/SchoolApi/GetSchoolData';
$route['checkSchool'] = 'api/SchoolApi/CheckSchoolData';
$route['admin/roll-change/(:any)'] = 'Admin/rollNumberChange/$1';
$route['admin/registration-number/(:any)'] = 'Admin/registrationNumberUpdate/$1';
$route['admin/symbol-number/(:any)'] = 'Admin/symbolNumberUpdate/$1';
$route['admin/assign-due-fees'] = 'Admin/assign_due_fees';
// scholarships
$route['admin/ae-scholarship-type/(:num)'] = 'admin/add_edit_scholarship_type/$1';
$route['admin/scholarship'] = 'admin/scholarship';
$route['admin/scholarship-types'] = 'admin/scholarship_types';
$route['admin/scholarship-list'] = 'admin/scholarship_list';
$route['admin/send-message'] = 'Admin/send_message';
$route['admin/transport-report'] = 'Admin/transport_report';
$route['admin/assign-class-teacher/(:any)'] = 'Admin/assign_class_teacher/$1';
$route['admin/multiple-edit'] = 'Admin/multiple_edit';
$route['admin/school-calendar'] = 'Admin/school_calendar';
$route['admin/event-types'] = 'Admin/school_event_type';
$route['admin/designation'] = 'Admin/designation';
$route['admin/staff-roles'] = 'Admin/staff_roles';
$route['admin/department'] = 'Admin/department';
$route['admin/school-administration'] = 'Admin/school_administration';
$route['admin/staffs'] = 'Admin/school_staffs';
$route['admin/add-edit-staff/(:any)'] = 'Admin/add_edit_staff/$1';
$route['admin/classroom-schedule'] = 'Admin/classroom_schedule';
$route['admin/classroom-schedule-update/(:any)'] = 'Admin/classroom_schedule_update/$1';
$route['admin/add-edit-class-schedule/(:any)'] = 'Admin/add_edit_class_schedule/$1';
// $route['admin/send-sms'] = 'Admin/send_sms';
// Inventory
$route['admin/inventory/dashboard'] = 'Inventory/dashboard';
$route['admin/inventory/item-unit'] = 'Inventory/item_unit';
$route['admin/inventory/book-publication'] = 'Inventory/book_publications';
$route['admin/inventory/suppliers'] = 'Inventory/suppliers';
$route['admin/inventory/item-categories'] = 'Inventory/item_category';
$route['admin/inventory/item-variants'] = 'Inventory/item_variants';
$route['admin/inventory/items'] = 'Inventory/item_list';
$route['admin/inventory/item-purchase'] = 'Inventory/item_purchase';
$route['admin/inventory/item-sales'] = 'Inventory/sales';
$route['admin/inventory/add-edit-new-entry/(:num)'] = 'Inventory/add_edit_new_entry/$1';
$route['admin/inventory/add-new-sales-record/(:num)'] = 'Inventory/add_new_sales/$1';
$route['admin/inventory/settings'] = 'Inventory/add_edit_staff/$1';
$route['admin/inventory/item-stocks'] = 'Inventory/item_stocks';
$route['admin/inventory/view-sales-detail/(:num)'] = 'Inventory/view_sales_details/$1';
$route['admin/inventory/view-item-detail/(:num)'] = 'Inventory/view_item_details/$1';
$route['admin/inventory/view-invoice/(:any)'] = 'Inventory/view_invoice/$1';
$route['admin/accounting-ledgers'] = 'Admin/accounting_ledgers';
$route['admin/journal-vouchers'] = 'Admin/journal_vouchers';
// $route['admin/create-account/(:any)/(:any)'] = 'Admin/create_ledger_account/$1/$2';
// Inventory Finish