0

when I print ths statement inside a model as,

Yii::error($this->validate()); 

it gives me

false

QUESTION :

How can I check which validation is getting violated? As I have 38 parameters with different rules, I am tired debugging application. any help?

Ankur Soni
  • 5,725
  • 5
  • 50
  • 81

1 Answers1

1

You can get the errors for your model this way:

$this->getErrors();

Reference:

Jannes Botis
  • 11,154
  • 3
  • 21
  • 39