Welcome Guest, Not a member yet? Register   Sign In
How to limit findall result
#1

Hi,
I try like this:
Code:
$data['wpisy']=$model->select('id,tytul,data_publikacji,opis_meta,obrazek')                             
                              ->limit(3)
                              ->orderBy('data_publikacji', 'DESC')
                              ->findAll();

But, Limit not works.
thanks for answer
Reply
#2

Pass the value directly to the findAll() method instead of using limit().
Reply
#3

Thanks!!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB