diversen opmerkingen
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by Pensare Software.
|
||||
* User: Theo Weijmer
|
||||
* Date: 21/04/2018
|
||||
* Time: 20:08
|
||||
*/
|
||||
include_once('../application/models/eloquent/Employeetarget.php');
|
||||
|
||||
|
||||
|
||||
class EmployeeTargetController extends MY_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getEmployeeTargets( $employeeID )
|
||||
{
|
||||
$employeeTargets = Employeetarget::whereUserId( $employeeID )
|
||||
->orderBy( 'startdate' )
|
||||
->get();
|
||||
|
||||
$this->json( $employeeTargets );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user