Welcome Guest, Not a member yet? Register   Sign In
Paginate remove query condition
#3

The paginate method is a wrapper for get methods.
When the get method is called, all query data is reset. This is normal.
Yes, you need to create a query each time.
But you can put the query in a separate method and call it.
Like this:
PHP Code:
public function myPostModelMethod()
{
    return 
$this->select()....; 
}
$some $this->post->myPostModelMethod()->like()->paginate();
$some2 $this->post->myPostModelMethod()->like()->paginate(); 
Reply


Messages In This Thread
Paginate remove query condition - by sfarzoso - 04-22-2021, 07:31 AM
RE: Paginate remove query condition - by InsiteFX - 04-22-2021, 11:16 AM
RE: Paginate remove query condition - by iRedds - 04-22-2021, 02:11 PM
RE: Paginate remove query condition - by sfarzoso - 04-25-2021, 06:49 AM
RE: Paginate remove query condition - by iRedds - 04-26-2021, 01:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB