[eluser]Yayo[/eluser]
In my application is not possible load one array since the controller to views.
How is possible if another arrays in controller's function can be loaded?
This is my controller
MY_Controller is new controller make for me, it work fine, the Controller.php make for code Igniter exist too en library)
class Reporte extends MY_Controller
{
function __construct()
{
parent::MY_Controller();
$this->load->model('ReporteModel', 'model');
}
function ReporteGeneral(){
$data2['array_inv2'] = $this->model->get('v_estudiantes_invitados2_cant');
$data2['array_inv1'] = $this->model->get('v_estudiantes_invitados1_cant');
$data2['array_no_inv'] = $this->model->get('v_estudiantes_sin_invitados_cant');
$data2['array_facultad'] = $this->model->get('v_sin_reservar_cant');
$data2['total_facultad'] = $this->model->get('v_total_por_facultad');
$data2['sin_invitados'] = $this->model->get('v_sin_invitados_fac_cant');
$data['view_estudiantes_con_inv'] = $this->load->view("pages/reporte/estudiantes_con_invitados",$data2,true);
$data['array'] = $this->model->get('v_familiar_punto_recogida_cant');
$this->template['content'] = $this->load->view('pages/reporte/general', $data,true);
$this->render();
}
}
My view: general
<?php
var_dump($sin_invitados);
?>
Messaje error:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: sin_invitados
NULL
What is the error? The another arrays (array_inv2,array_inv1...)are detected in the view.
The unique no detected is this
in_invitados