CI version 4.1.1 Call to a member function setRules() on null |
Hi all, im having this problem using validations, on my production server
here is my controller code PHP Code: <?php here my model code PHP Code: ?php namespace App\Models; my html form code Code: <form action="registrar" method="POST" accept-charset="UTF-8" onsubmit="registerButton.disabled = true; return true;"> I have search in this forum, but nothing found pd: sorry for my bad english
Is this the complete model code?
I am asking because it seems to me that you have override the constructor in your model.
The value of the validation property is initially undefined. Only in the constructor is it assigned an instance of the validation class.
An error means that either the constructor in the BaseModel class is not called (overridden in the inheritors), or the property value is reset.
|
Welcome Guest, Not a member yet? Register Sign In |