My view duplicate in the page

iam using standered Ci with Auth_ion when i pass the data from my controller to the view it show me my data twice one in the above header and one inside my template this the code that i use
public function report_all()
  $this->data['title'] = "report all";
       $config = array();
      $config["base_url"] = base_url()."report/report_all";
        $config["total_rows"] = $this->mod_model->record_count();
        $config["per_page"] = 10;
          $config["uri_segment"] = 3;
      $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
     $data["results"] = $this->mod_model->display_report($config["per_page"], $page);
         $data["links"] = $this->pagination->create_links();
       $this->load->view("report/report_all", $data);

i now that that happen becouse i load the view but how can i pass this data without loading the view the view is loading twice as i said one in its correct place and the other one wrong i have creat folder for the view with the name of the controller and the view page in the name of the function and that one is the correct one and the other its loade it becouse i said
$this->load->view("report/report_all", $data);
can any one help me to just pass the data .

I have found that there is third parameter can be used in the load view and its default value is false so you have to set it as true and its common in template .
the code of the view will look like that
$this->load->view("report/report_all", $data,true);
it will load the view in the template you design .
enjoy CI

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.