2016-08-04 39 views

Antwort

0
 You need to code in controller methods i.e 



class ExampleController extends CI_Controller { 
    public $data; 
    public function foo(){ 
     //inside foo get the view of bar in variable i.e. 
     $this->data['bar_view'] = $this->load->view('bar_view',$this->data,true); 
     $this->load->view('foo_view',$this->data); 
    } 
    public function bar(){ 
     //inside foo get the view of bar in variable i.e. 
     $this->data['foo_view'] = $this->load->view('foo_view',$this->data,true); 
     $this->load->view('bar_view',$this->data); 
    } 
} 


    // inside view display as the order you want