Advertisement:

Author Topic: How I do a pagination with dao class?  (Read 679 times)

AdrianOlmedo

  • Newbie
  • *
  • Posts: 46
  • Working with Osclass 3.7.5
How I do a pagination with dao class?
« on: September 06, 2015, 04:34:47 am »
I have this query in the class model from my plugin:

Code: [Select]
public function getBanners() {
        $this->dao->select('*') ;
        $this->dao->from($this->getTable_banners());
        $this->dao->orderBy('dt_from_date', 'ASC');
        $result = $this->dao->get();
        if($result) {
            return $result->result();
        }
        return array();
    }

I need a simple tutorial.

fre2mansur

  • Hero Member
  • *****
  • Posts: 711
Re: How I do a pagination with dao class?
« Reply #1 on: December 29, 2015, 08:27:27 am »
anyone?