So, i want to load a main view from my controller in codeigniter 3.0, but instead of showing the view, the page shows the "Object of class CI_Loader could not be converted to string", and the view i want to show is on the top of my page not in the center of my page.
sorry for my bad english.
this is my controller:
if($this->session->userdata('logged_in')){
$data['utama'] = $this->load->view('spvcoll/v_list');
$data['judul'] = 'List Assign';
$this->load->view('v_index',$data);
}else{
redirect('c_index');
}
Here i want to call the variable:
<?php echo $utama;?>
Aucun commentaire:
Enregistrer un commentaire