title: Codeigniter validation errors are not displaying
body: <p>My codeigniter validation errors are not displaying someone can help?
  my code is</p>
  
  <pre><code>public function addProduct(){
      $this-&gt;load-&gt;view('header', $this-&gt;data);
      $this-&gt;load-&gt;view('product/addProduct');
      $this-&gt;load-&gt;view('footer');
  
          $this-&gt;form_validation-&gt;set_rules('productName', 'Product Name', 'required|trim');
          $this-&gt;form_validation-&gt;set_rules('productPrice', 'Product Price', 'required|trim');
          if (!$this-&gt;form_validation-&gt;run() == FALSE)
          {
              // some stuff on validation success
          }
          else{
              $this-&gt;load-&gt;view('product/addProduct');
          }
  
  }
  </code></pre>
  
  <p>and i have added 
   echo validation_errors(); in my view and action of the form is product/addProduct.</p>