[eluser]oll[/eluser]
Hello here,
I don't know if it's a normal new behaviour or if I did something wrong upgrading to ci 1.7, but my code doesn't work anymore :
Controller :
Code:
<?php
class Test extends Controller {
function Test()
{
parent::Controller();
}
function index()
{
$this->load->library ('testlib',"Tom Sawyer");
}
}
?>
Library :
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Testlib {
function Testlib($user)
{
echo "hello $user";
}
}
?>
The error is :
Code:
Severity: Warning
Message: Missing argument 1 for Testlib::Testlib(), called in /var/www/html/videos/ci/system/libraries/Loader.php on line 931 and defined
Filename: libraries/testlib.php
Line Number: 5
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: user
Filename: libraries/testlib.php
Line Number: 7
When I downgrade back to ci 1.6.3, it works again

I have the Hello Tom Sawyer message with no errors.
I checked the changelog and especially everything about the new library loader but I didn't find a way to solve my problem.
I did a search in the forum but didn't find a similar problem neither.
Thank you.