[eluser]Jagar[/eluser]
I made few modifications to the code and now it's working perfect
Code:
$this->set_directory('');
$this->set_class('home');
$this->set_method('index');
return array();
As you see I changed from main to home, which is my default controller
also
Code:
//return $segments;
if($found){
return $segments;
}else {
show_404($this->fetch_directory().$segments[0]);
}
I changed it to that, because the way you had it, was displaying the Controllers/home.php controller, even when sometimes the url was wrong, so now it gives 404 error, which is what i want.
Again excellent work, this is really useful