Skip to content

Commit

Permalink
Update HungNG_Custom_Based_model
Browse files Browse the repository at this point in the history
  • Loading branch information
HungNA - Technical Manager committed Sep 13, 2024
1 parent c360428 commit 8451d03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hungng/HungNG_Custom_Based_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1099,11 +1099,13 @@ public function get_data_simple_result($select = '*', $wheres = array(), $size =
}
}
}
$this->page_limit($size, $page);

foreach ($orderBy as $key => $val) {
$this->db->order_by($tableName . '.' . $key, $val);
}

$this->page_limit($size, $page);

return $this->db->get()->result();
}

Expand Down

0 comments on commit 8451d03

Please sign in to comment.