load->model( $models ); $this->load->library( $libraries ); } public function index() { } public function getUsedYears() { $years = Projecthour::getUsedYears(); $this->json( $years ); } }