Insert form in template AdminLTE-2.3.11 and codeigniter 3

0

I am new learning CI, I am trying to integrate a form to the AdminLTE template right in the content part:

<section class="content">
 <?= $this->load->view('registrarCatalogacion');?>
</section>
<!-- /.content -->

  

Currently I get this error: Message: Object of class CI_Loader could not be converted to string, could you please tell me the correct way to do it or what am I wrong ?. Thank you very much.

    
asked by John Vanegas 15.08.2017 в 11:59
source

1 answer

0

The problem is that you are printing the view.

when you write

<?= $variable; ?>

is equivalent to:

<?php echo $variable; ?>

to make it work for you, you should put it like this:

 <?php $this->load->view('registrarCatalogacion'); ?>
    
answered by 16.08.2017 / 22:31
source