• 1
Votes
name
name Punditsdkoslkdosdkoskdo

Pass multiple Arrays to view in code igniter

My controller look like this:


public function index(){
 $data['result']=$this->load_city->view(); 
 $data2['result']=$this->load_city->spl(); 
 $this->load->view('home_view',$data);
}
name
  • 6
Teacher
public function index()
{
    $data['result1']=$this->load_city->view();
    $data['result2']=$this->load_city->spl();
    $this->load->view('home_view',$data);
}
  • 6
Reply Report