Welcome Guest, Not a member yet? Register   Sign In
Problem to load array since the controller to view
#1

[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 controllerSadMY_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 thisConfusedin_invitados


Messages In This Thread
Problem to load array since the controller to view - by El Forum - 07-14-2007, 09:34 PM
Problem to load array since the controller to view - by El Forum - 07-15-2007, 02:46 AM
Problem to load array since the controller to view - by El Forum - 07-15-2007, 12:01 PM
Problem to load array since the controller to view - by El Forum - 07-15-2007, 12:12 PM
Problem to load array since the controller to view - by El Forum - 07-15-2007, 12:30 PM
Problem to load array since the controller to view - by El Forum - 07-15-2007, 12:42 PM
Problem to load array since the controller to view - by El Forum - 07-15-2007, 04:52 PM
Problem to load array since the controller to view - by El Forum - 07-17-2007, 07:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB