[eluser]Ajaxian64[/eluser]
Thanks smilie,
then To sum up
I put the class Msg in library folder (of my application or core)
==> then I must respect the construct form :
Code:
public function __construct($msg,$status)
{
$this->ci =& get_instance(); // If I need CI facilities I presume...
$this->status = $status;
$this->msg = $msg;
}
And then I autoload this
And after I can use this syntax:
Code:
new Msg('bbll',FALSE) ;
But the syntax of Msg construct is not good and MUST be function __construct() without parameter due to the fact that entering in CI process with load->library or autoloading means no parameters in construct function.
Then new Msg(param1,param2) is, I presume, not possible with library loading...
Thanks