Reputation: 59
I have developed a project in Codeigniter 2x. In this project I use a folder in the controllers folder and crate my controller in this folder and declare a method in this controller. I send two parameters in this method.
My URL looks like this www.exmple.com/folder/home/index/$param1/$param2.
Where myfolder=folder name; home=controller name; index=Method name; and $param1, $param2 is parameters name;
Now I am trying to remove my folder name,controller name and method name.
Upvotes: 1
Views: 460
Reputation: 836
You can solve it by editing the Routes file. (application/config/routes.php):
$route['custom-url/(.*)/(.*)'] = 'folder/home/index/$1/$2';
Upvotes: 0