title: Kohana 3.2, displaying errors in the form
body: <p>I'd like to display errors on my form, highlighting the fields which have errors, and displaying the error text next to the field.  If there's no elegant way to display next to each field, above would be fine.</p>
  
  <p>I've found examples from earlier versions, but the API has seemed to change and they do not work for 3.2.</p>
  
  <p>It's just a project I'm learning Kohana with, so it's not critical.  I just want to know the  "kohana" way of handling this problem.</p>
  
  <p>In my controller, I have this:</p>
  
  <pre><code>if (isset($_POST) &amp;&amp; Valid::not_empty($_POST))
  {
      $post = Validation::factory($_POST)
      -&gt;rule('zipcode', 'not_empty'));
  
      if ($post-&gt;check()) {
          $errors = $post-&gt;errors('zipcode');
      }
  }
  
  $this-&gt;template-&gt;content = View::factory('myview', $data)
  -&gt;bind('errors', $errors);
  </code></pre>
  
  <p>And here is my form in 'myview.php':</p>
  
  <pre><code>&lt;?php echo Form::open(); ?&gt;
  &lt;dl&gt;
      &lt;dt&gt;&lt;?php echo Form::label('zipcode', 'Zip Code') ?&gt;&lt;/dt&gt;
      &lt;dd&gt;&lt;?php echo Form::input('zipcode') ?&gt;&lt;/dd&gt;
  &lt;/dl&gt;
  &lt;p&gt;&lt;?php echo Form::submit(NULL, 'Get Records'); ?&gt;&lt;/p&gt;
  &lt;?php echo Form::close(); ?&gt;
  </code></pre>