Files
2021-07-10 16:25:16 +02:00

22 lines
516 B
PHP

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Schooljaren extends MY_Controller{
function __construct(){
parent::__construct();
$models = array("shared/Users_model",'shared/Schooljaren_model');
$this->load->model($models);
$this->load->helper('string');
}
function getschooljaren(){
$schooljaren = $this->Schooljaren_model->getschooljaren();
echo json_encode($schooljaren);
}
function getselectedschooljaar(){
echo json_encode($this->schooljaar);
}
}