Error with route in codeigniter

0

I need to pass a token via URL (type an affiliate code) the problem is that whenever I pass this token, it loads the wrong page, instead of loading the registration page, loads the home and with error in the files style .. when I do not use the token, it loads normally.

Follow

//Rota
$route['cadastro/(:any)'] = 'cadastro/index';

// Controller
public function index()
{
    $this->load->view('cadastro');
}
    
asked by anonymous 12.07.2018 / 18:41

0 answers