Welcome Guest, Not a member yet? Register   Sign In
Suppressing PHP errors in admin panel
#2

well its talking about a php class called MY_Model and a constructor:

a constructor is of the form :

public function __construct()
{
//something here
}

what it seems to be hinting at is that you have duplicated it:

public function __construct()
{
//something here
}
public function __construct()
{
//something here
}


you can have in theory as many methods in a class with different names as you like but only one constructor.

Open up MY_Model.php and see if you can see repeat code.

I could understand mistake of repeating a normal method, but a constructor has __construct() so difficult to see how that was repeated, should be top of class and youre quoting line 79 ? you can supress errot reporting but its there for a purpose
Reply


Messages In This Thread
Suppressing PHP errors in admin panel - by nyquil - 11-14-2020, 11:08 AM
RE: Suppressing PHP errors in admin panel - by captain-sensible - 11-15-2020, 08:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB