Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Model;
- use App\Util as Util;
- class People extends Model {
- // Returns an array of people objects simply with an ID.
- public function getPeople() {
- return $this->app->db->from("person")->distinct()->select('id')->many();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement