title: Codeigniter 2.1 send data from one controller to another
body: <p>I have function like this:</p>
  
  <pre><code>function gi_insert()
          {
          if(!IS_AJAX){
        $this-&gt;load-&gt;library('form_validation');
        $this-&gt;form_validation-&gt;set_rules('name', 'Naslov', 'trim|required|strip_tags');
        $this-&gt;form_validation-&gt;set_rules('body', 'Tekst', 'trim|required|strip_tags');
        $this-&gt;form_validation-&gt;set_rules('email', 'E-mail', 'trim|required|strip_tags|valid_email');
        $this-&gt;form_validation-&gt;set_rules('tag', 'Tagovi', 'trim|required|strip_tags');
        if(isset($_POST['category_new'])){
            $this-&gt;form_validation-&gt;set_rules('category_new', 'Kategorija', 'trim|strip_tags');
        }
  
        $p = $this-&gt;uri-&gt;segment(3);
        if ($this-&gt;form_validation-&gt;run() == FALSE)
          {
                     $errors = validation_errors();
                     redirect("admin/create/$p", 'location');
          }
          else
          {
                      $this-&gt;gi-&gt;gi_insert();     
                      redirect('admin/pregled/' . $this-&gt;uri-&gt;segment(3));
          }
          } else
          {
              $this-&gt;gi-&gt;gi_insert(); 
          }           
  
      }
  </code></pre>
  
  <p>How can I send validation errors to <code>admin/create</code> controller? At the moment, this is working, but I don't get error report (page where errors should appear is containig </p>
  
  <pre><code>&lt;?php echo validation_errors(); ?&gt;
  </code></pre>
  
  <p>)</p>