function listar() { $this->load->model("Personas_model"); $this->load->model("Personas_Aficiones_model"); $datos["personas"] = $this->Personas_model->getPersonas(); $datos["personas"] = $this->Personas_Aficiones_model->contarAficiones($datos["personas"]); enmarcar($this, "Personas/listar", $datos); }
function listar() { $this->load->model("empleado_model"); $this->load->model("departamento_model"); $datos["empleados"] = $this->empleado_model->getEmpleadosDep(); $datos["departamentos"] = $this->departamento_model->leerTodos(); enmarcar($this, 'empleado/listar', $datos); }
function crearPersona() { $this->load->model('aficion_model', 'aficion', true); $datos['aficiones'] = $this->aficion->getAficiones(); enmarcar($this, 'crearPersona', $datos); }
function listar() { $this->load->model('Departamento_model', 'dep', true); $datos['departamentos'] = $this->dep->leerTodos(); enmarcar($this, 'departamento/listar', $datos); }
function crearAficion() { enmarcar($this, 'crearAficion'); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { enmarcar($this, 'welcome'); //$this->load->view('welcome_message'); }
function crear() { enmarcar($this, "Aficiones/Crear"); }