0
I have the following route:
$route_pri = $this->uri->segment(1);
$route_sec = ($this->uri->segment(2)==true) ? $this->uri->segment(2) : '';
$route_three = ($this->uri->segment(3)==true) ? $this->uri->segment(3) : '';
$second = ($this->uri->segment(2)==true) ? $this->uri->segment(1).'/(:any)' : $this->uri->segment(1);
$second = ($this->uri->segment(3)==true) ? $second.'/(:any)' : $second;
$route[$second] = 'leftcontent/allowed/'.$route_pri.'/'.$route_sec.'/'.$route_three;
What would be the best way to organize it? I don’t want to have to type in all the routes I need to chart for each one, so this way I can recover, I just found disorganized.
Are you setting up the routes dynamically? because?
– novic