This commit is contained in:
2018-04-24 08:31:00 +02:00
parent e49fa05a9a
commit 6bc0b37f06
4 changed files with 55 additions and 34 deletions
@@ -5,7 +5,7 @@
* Date: 21/04/2018
* Time: 20:08
*/
include_once('../application/models/eloquent/Employeetarget.php');
//include_once('../application/models/eloquent/Employeetarget.php');
@@ -24,7 +24,7 @@ class EmployeeTargetController extends MY_Controller {
public function getEmployeeTargets( $employeeID )
{
$employeeTargets = Employeetarget::whereUserId( $employeeID )
->orderBy( 'startdate' )
->orderBy( 'id' )
->get();
$this->json( $employeeTargets );