CIv4 Call to a member function setRules() on null |
In your App\Models\BaseModel::__construct method, add this line as the very first line of your constructor.
PHP Code: parent::__construct(); Please remember that whenever you extend a class that has a defined constructor method and you are defining your own constructor, you need to explicitly add that line in order to inherit the parent's initialization processes. |
Messages In This Thread |
CIv4 Call to a member function setRules() on null - by pc87 - 06-20-2021, 11:56 PM
RE: CIv4 Call to a member function setRules() on null - by ikesela - 06-21-2021, 07:05 AM
RE: CIv4 Call to a member function setRules() on null - by paulbalandan - 06-22-2021, 01:58 AM
|