Welcome Guest, Not a member yet? Register   Sign In
Error loading an template view
#1

[eluser]Diegosf93[/eluser]
I have this problem when i try to load an template view with another view, lets see the code:

This is the code of the template:

Code:
<?php $this->load->view('header.php'); ?>

<?php $this->load->view($contenido); ?>

<?php $this->load->view('footer.php'); ?>

Then in the controller i have this:
Quote:Here I load a droplist with categories and i pass it to the "Agregar_Operador" view in a variable.
And then load the template with the ยท$data array inside the "Agregar_Operador" view to the template.

Code:
$datas['categorias']=$this->Admin_Model->Cargar_Categorias();    
$data['contenido']=$this->load->view('Panel_Admin/Agregar_Operador', $datas,true);
$this->load->view('template',$data);

This appear me in the browser:
http://imageshack.us/photo/my-images/402...ravlh.png/


Thanks!


Messages In This Thread
Error loading an template view - by El Forum - 08-24-2012, 11:05 AM
Error loading an template view - by El Forum - 08-24-2012, 11:10 AM
Error loading an template view - by El Forum - 08-24-2012, 11:12 AM
Error loading an template view - by El Forum - 08-24-2012, 11:16 AM
Error loading an template view - by El Forum - 08-24-2012, 12:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB