title: Custom validation message not working in Yii2
body: <p>I want to display custom validation messages for max length and min length of phone number.
  I have written this code to display custom validation message for max length and min length of phone number field.</p>
  
  <pre><code>['phone', 'string', 'max' =&gt; 12, 'min' =&gt; 8, 'message' =&gt; 'Please enter a valid Phone number.']
  </code></pre>
  
  <p>The validation is working well however custom message is not being displayed. everytime is shows this default yii2 message "Phone should contain at most 12 characters."</p>
  
  <p>Thanks in advance for help.</p>