[eluser]morismc[/eluser]
The following problem just happens when I try to use MSSQL driver in the "database.php" file. With MYSQL everything is working fine. Any idea?
------------------------------------------------------------------------------------------------------------------------
Hello guys,
I also worked the tutorial and did the database part. I did copy & paste of the code from the tutorial and tried to call "index.php/news" after
1) creating the route
2) creating the db class
3) creating the controller methods "index" and "view" and
4) creating the views for both
The first error seemed to be that the parent constructor didn't get called when loading the "News_model" class.
But there was another thing that I was not able to fix until now. The call to "<site_url>/index.php/news" in my browser returned nothing. While checking the problem, I found out that I get a white browser screen after calling the function "$this->load->model('news_model');".
Code:
class News extends CI_Controller {
public function __construct()
{
parent::__construct();
// after calling the model, it returns nothing
$this->load->model('news_model');
}
}
Could you please tell me
a) how to get the error (if there is one) showing up
b) what you think the problem could be
Thank you in advance for your support.