Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function get_list($start = null) {
- if ($start == NULL) {
- $offset = 0;
- } else {
- $offset = $start * 30;
- }
- $books = array();
- $book = Model_Book::query()->limit(30)->offset($offset)->get();
- foreach ($book as $b) {
- \Arr::insert($books, $b, 0);
- }
- return $books;
- }
Advertisement
Add Comment
Please, Sign In to add comment