I have create a subfolder in controller
Structure of Controller folder:
--controller
--backend
--dashboard.php
--products.php
--frontend
--index.php
--users.php
I have create some rules in route.php file
$route['default_controller'] = 'backend/admin_controller/';
$route['admin_panel'] = "backend/admin_controller/dashboard";
$route['admin_panel/login'] = "backend/admin_controller/index";
$route['admin_panel/(:any)'] = "backend/admin_controller/$1";
This is working perfectly when i open any link like:
http://localhost/Demo_app/admin_panel/products
http://localhost/Demo_app/admin_panel/dashboard
These are working fine but when i pass parameters to update product it gives an error url not found.
For these link (when click on these link)
http://localhost/Demo_app/admin_panel/add_product/69
http://localhost/Demo_app/admin_panel/add_product/0/69
/* 69 is product id and 0 is status of product to active or unactive
I am confused to create rule for this.