In my form\'s model, I have a custom validation function for a field defined in this way
class SignupForm extends Model { public function rules() {
You need to render the model from controller. Without initializing the model in view. And in the controller you need to call the validate function