load->model( $models ); $this->load->library( $libraries ); } public function index() { } public function recapProjects() { $recapprojects = new Recapprojects(); $projects = $recapprojects->getProjects(); $this->json( $projects ); } public function getMonthlyEmployeeHoursPerProject( $employeeID, $year ) { $monthlyhours = Projecthour::getMonthlyEmployeeHoursPerProject( $employeeID, $year ); $this->json( $monthlyhours ); } public function getMonthlyEmployeehours( $month, $year ) { $sql = QEmployeeHours::fire( $month, $year ); $query = $this->db->query( $sql ); $result = $query->result(); $this->json( $result ); } public function getInvoiceOverview( $year ) { $sql = Qinvoiceoverview::fire( $year ); $query = $this->db->query( $sql ); $result = $query->result(); $this->json( $result ); } }