Is it possible to combine a exec method with paginate? Something like:
$list = $f3->get('DB')->exec("SELECT * FROM chemdb_agw ORDER BY gw_bezeichnung")->paginate($page-1, $limit)
ikkez
unread,
Jan 14, 2019, 8:45:12 AM1/14/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fat-Free Framework
paginate works as expected. it is not possible to combine the result from exec with any mapper method.. what you want is to add "LIMIT 10,10" or something.
Uwe Wagner
unread,
Jan 14, 2019, 10:52:30 AM1/14/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
The documentation on this point is not entirely clear.
bcosca
unread,
Jan 14, 2019, 7:25:20 PM1/14/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fat-Free Framework
The documentation is quite clear on this point. The third argument is meant to be the query filter (WHERE clause) and not the additional modifiers (ORDER and LIMIT clauses).