[eluser]drewbee[/eluser]
You say it doesn't work when you put it in the parent construct class? Are you calling the parent constructor upon adding the child construct??
Code:
class ParentClass
{
function __construct()
{
mail();
}
}
// Now extend it...
class ChildClass extends ParentClass
{
// Does not work, you are overloading the parent __constructor method.
function __construct()
{
// To get the original parent constructor to fire, you must explicitly call it
// Now we should send out mail.
parent::__construct();
}
}
Or you can explicitly leave the __construct() method out of the child class to which it will not over overload it.
Why is this posted in the bug reports? This would be more specific to PHP, not Code Igniter if it were an issue;
P.S. Welcome to Code Igniter