title: Form validation not displaying errors with Codeigniter template library
body: <p>I am using the Codeigniter template library created by phil sturgeon (http://philsturgeon.co.uk/demos/codeigniter-template/user_guide/).</p>
  
  <p>All works correctly until I add form validation to my forms, I can't seem to display the validation error messages how I did previously without the template library.</p>
  
  <p>My validation is setup like:</p>
  
  <pre><code>        $data['page'] = $this-&gt;Content_model-&gt;getContent($page);//Get data from table "content" where "page" equals $page 
  
          $subnav_data['subnav'] = $this-&gt;Content_model-&gt;getSubnav($category);//Get sub navigation items from database
          $subnav_data['subnav_active'] = $page; //Set active subnav page
  
         $left_column = $this-&gt;load-&gt;view('widgets/sub_navigation', $subnav_data, true);
          $left_column .= $this-&gt;load-&gt;view('widgets/search_box', '', true); //Set data to be loaded into columns
          $left_column_base = $this-&gt;load-&gt;view('widgets/assist_navigation', '', true);
          $center_column = $this-&gt;load-&gt;view('content/text', $data, true); //Loads content from db in text view
  
  //insert form into the template         
  $center_column .= $this-&gt;load-&gt;view('forms/question', '', true);//Load form
  
          $center_column .= $this-&gt;load-&gt;view('widgets/breadcrumbs', '', true);
          $center_column .= $this-&gt;load-&gt;view('widgets/share', '', true);
          $right_column = $this-&gt;load-&gt;view('widgets/ask_us_a_question', '', true);
          $right_column .= $this-&gt;load-&gt;view('widgets/newsletter', '', true);
          $right_column .= $this-&gt;load-&gt;view('widgets/latest_news', '', true);
  
          $this-&gt;template-&gt;inject_partial('left_column', $left_column); //Inject data into the partial columns
          $this-&gt;template-&gt;inject_partial('left_column_base', $left_column_base);
          $this-&gt;template-&gt;inject_partial('center_column', $center_column);
          $this-&gt;template-&gt;inject_partial('right_column', $right_column);
  
  $this-&gt;load-&gt;library('form_validation');//Load form validation
  $this-&gt;form_validation-&gt;set_error_delimiters('&lt;div class="error"&gt;', '&lt;/div&gt;');
  $this-&gt;form_validation-&gt;set_rules('first_name', '"First name"', 'trim|required|alpha_dash|min_length[3]|max_length[55]');
  $this-&gt;form_validation-&gt;set_rules('last_name', '"Last name"', 'trim|required|alpha_dash|min_length[3]|max_length[55]');
  $this-&gt;form_validation-&gt;set_rules('service', '"Service"', 'trim|required|alpha_dash|min_length[3]|max_length[55]');
  $this-&gt;form_validation-&gt;set_rules('email_address', '"Email address"', 'trim|required|valid_email');
  $this-&gt;form_validation-&gt;set_rules('phone_number', '"Phone number"', 'trim|numeric|min_length[8]|max_length[20]');
  $this-&gt;form_validation-&gt;set_rules('question', '"Question"', 'trim|required|min_length[20]|max_length[500]');
  
  if ($this-&gt;form_validation-&gt;run() == FALSE){
      $this-&gt;template-&gt;build('template',$data); 
  }
  else
  {       
  
    if($this-&gt;Question_model-&gt;submit_question()){        
      $this-&gt;session-&gt;set_flashdata('success', 'success');
      redirect('question', 'location');                           
    }
    else{
      $this-&gt;template-&gt;build('template',$data); 
    }
  
  }
  </code></pre>
  
  <p>This is my form where I intend to display the validation errors:</p>
  
  <pre><code>&lt;div id="form"&gt;
  &lt;?php 
      echo '&lt;div id="error_container"&gt;' . validation_errors() . '&lt;/div&gt;';
  
      echo form_open('question');
  
      //First name
      echo '&lt;b&gt;'.form_label('First name *', 'first_name').'&lt;/b&gt;';
      echo form_input('first_name',set_value('first_name'));
  
      //Last name
      echo '&lt;b&gt;'.form_label('Last name *', 'last_name').'&lt;/b&gt;';
      echo form_input('last_name',set_value('last_name'));    
  
      //Email address
      echo '&lt;b&gt;'.form_label('Email address *', 'email_address').'&lt;/b&gt;';
      echo form_input('email_address',set_value('email_address'));    
  
      //Phone number
      echo '&lt;b&gt;'.form_label('Phone number *', 'phone_number').'&lt;/b&gt;';
      echo form_input('phone_number',set_value('phone_number'));  
  
      //Service
      echo '&lt;b&gt;'.form_label('Service *', 'service').'&lt;/b&gt;';
      echo '&lt;select name="service"&gt;';
      echo'&lt;option value=""'.set_select('service', TRUE).' &gt;Select a service...&lt;/option&gt; ';
      echo'&lt;option value="investments"'.set_select('service', 'investments').' &gt;Investments&lt;/option&gt; ';
      echo'&lt;option value="mortgages"'.set_select('service', 'mortgages').' &gt;Mortgages&lt;/option&gt; ';
      echo'&lt;option value="other"'.set_select('service', 'other').' &gt;Other&lt;/option&gt; ';
      echo '&lt;/select&gt;';
  
      //Question
      echo '&lt;b&gt;'.form_label('Question *', 'question').'&lt;/b&gt;';
      echo form_textarea('question',set_value('question'));
  
      echo '&lt;p&gt;&lt;i&gt;Your question will be forwarded to our consultants who will answer and return their response in the fastest time possible.&lt;/i&gt;&lt;/p&gt;';
  
      echo form_submit('submit', 'Ask question');
  
      echo form_close();
  ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Upon submit the validation errors should be displayed, but aren't. The validation is successfully stopping the form posting when errors are found, but is not showing the errors to the user.</p>
  
  <p>Is there something else required for form validation to work with the template library, how can I debug the issue???</p>