In a route, the array key contains the URI to be matched, while the array value contains the destination it should be re-routed to.
Your physical controller name is welcome
. So if you want a URL containing the word test
in the first segment be remapped to the welcome
class, you should do this:
$route['test'] = "welcome/METHOD";
Where METHOD
is method of welcome
class.
Note: If class/method was welcome/index
, you do NOT need to append /index
.