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

[eluser]vitoco[/eluser]
When you load a view, the first parameter it's the filename of the view
Code:
<?php $this->load->view('header.php'); ?>

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

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


But here

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

you're storing in ['contenido'] the returned html from the view 'Panel_Admin/Agregar_Operador', not the view filename. so change it to this.

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

<?php echo $contenido; ?>

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


Slds


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