Welcome Guest, Not a member yet? Register   Sign In
CIv4 Call to a member function setRules() on null
#3

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.
Reply


Messages In This Thread
RE: CIv4 Call to a member function setRules() on null - by paulbalandan - 06-22-2021, 01:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB