kuldeep kuldeep - 1 year ago 109
PHP Question

Remove the controller name and function in url


remove tradingcontroller/index in url...

display url :: http://localhost/trading/Titan-Company.html

please help me thank you

Answer Source

You can try this

In config/routes.php file, set like this:

$route['(:any)'] = 'tradingcontroller/index/$1';
$route['tradingcontroller'] = 'tradingcontroller';
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download