Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 function crearPersona()
 {
     $this->load->model('aficion_model', 'aficion', true);
     $datos['aficiones'] = $this->aficion->getAficiones();
     enmarcar($this, 'crearPersona', $datos);
 }
Ejemplo n.º 4
0
 function listar()
 {
     $this->load->model('Departamento_model', 'dep', true);
     $datos['departamentos'] = $this->dep->leerTodos();
     enmarcar($this, 'departamento/listar', $datos);
 }
Ejemplo n.º 5
0
 function crearAficion()
 {
     enmarcar($this, 'crearAficion');
 }
Ejemplo n.º 6
0
 /**
  * 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');
 }
Ejemplo n.º 7
0
 function crear()
 {
     enmarcar($this, "Aficiones/Crear");
 }