[eluser]Richard Testani[/eluser]
I'm trying to figure out what the differences are in the 2 versions.
In the following, I've set:
$route['default_controller'] = "index";
I know in php4 you use the class name as the construct and in php5 you'd use __construct().
I'm running php5, so it's __construct() for me, yet...
Code:
class Index extends Controller {
public function __construct() {
parent::Controller();
$this->load->database();
$bsn_data['mode'] = 'test';
$this->load->model('Bsn');
}
}
Returns file not found. status 404.
I'm not sure why.
Once I add the following to the Index class it works:
Code:
public function Index() {
}
I can't figure out the why's on this one.