title: Adding error in yii2 to html form
body: <p>I want to add yii2 default error to the form that is created using only html tags:</p>
  
  <pre><code>&lt;form&gt;
     &lt;input type="text"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I just shorted the form. Actually it is very long and couldn't write with</p>
  
  <pre><code>&lt;?=  $form-&gt;field($model, 'model')-&gt;dropdownList([
          1 =&gt; 'item 1',
          2 =&gt; 'item 2'
      ],
      ['prompt'=&gt;'Select Category']
      );
  ?&gt;
  
  &lt;?= $form-&gt;field($model, 'model')-&gt;textInput() ?&gt;
  &lt;?= $form-&gt;field($model, 'model')-&gt;textarea(['rows' =&gt; '6']) ?&gt;
  </code></pre>
  
  <p>even if I used costom template for each one. Because the design is very complex</p>