I have a controller messages. And there is a function called index.
class messages extends CI_Controller {
public function __construct() {
parent::__construct();
public function Index($userkey=NULL){
Some functctions
}
}
Currently my URL is messages/index/userkey. And i want to convert this to messages/userkey. How can i convert this by routes. please help me