title: CodeIgniter Validation Errors - how to get an array of key => value pairs?
body: <p>Assuming a form with errors, is there a way to get an array of key (the field name) / value (the error message) pairs? For example:</p>
  
  <pre><code>['name'] =&gt; 'The name field is required',
  ['age'] =&gt; 'The name must be greater than 18'
  </code></pre>
  
  <p>If there is no native way to do this, I will extend the form validation library and expose the protected property *_error_array*.</p>