• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call to a member function paginate() on array

Could someone please steer me in the right direction:

I am trying to paginate on a query but no matter what I try I get the error message:
Call to a member function paginate() on array:

It works fine if I just use $this->model->paginate();
If i try anything else such as $this->model->find()->paginate() etc I get the error message.

I know the Model is returning an array because I have it set that way but I have set the default to 'object' and also
tried the asObject()-> with no luck. Any suggestions would be gratefully appreciated.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.