[eluser]klompie[/eluser]
Have searched for this en found others with the same sort of problems, but cant solve this.
when i use $autoload['libraries'] = array('database'); nothing will load. every page i open stays white. (no source too)
this is my loaded controller:
Code:
<?php
class Klant extends Controller {
function Klant()
{
parent::Controller();
}
function index()
{
echo 'Hello World!<br>';
mysql_connect("localhost","crm_user","******") or die(mysql_error());
mysql_selectdb("dtd_crm") or die(mysql_error());
echo 'Connected!';
}
}
/* End of file klant.php */
/* Location: ./application/controllers/klant.php */
when i disable autoloading of database it echo's "Hello World! Connected!" so this way it is working.
I tried setting pconnect to false but this did not solve it.
So how to solve this.