i tried to do that
$route['([a-z]{2})/pages/index/(:num)'] = "pages/(:num)";
this gave me error from db
A PHP Error was encountered
Severity: Warning
Message: Missing argument 1 for Pages::index()
Filename: controllers/pages.php
Line Number: 14
because in my code i try to get the values from url and now that function in controller trying to get the 5th part of url but can't find any parameter that depends on selection from db later , how to fix that ?
$route['([a-z]{2})/pages/index/(:num)'] = "pages/(:num)";
try,
$route['([a-z]{2})/pages/index/(:num)'] = "pages/$1";