[eluser]danishravian[/eluser]
there is some modification in the structure.
actually whenever url will be something like aaa-x-y-z, then I am sending it to a controller and passing aaa and x-y-z as two parameters.
Code:
class bbb extends CI_Controller {
function _remap($method) {
$method; // should contain aaa
$uri2 = $this->uri->segment(2); // should contain x-y-z
}
}
But in this case $mothod contains aaa-x-y-z
and I am using this in route.php file
Code:
$route['aaa-(:any)'] = "bbb/aaa/$1";
So the problem here is, uri segment 2 is empty and uri segment 1 contains both the parameters. But uri 1 should contain aaa and uri 2 should have x-y-z. How can I do this?