[RSS Feed/News] Limit Finder results and limitByPage

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hey togther,
i need some advice.
How can I get a limited number of threads from thread finder and use the pagination stuff at the same time?

PHP:

Code:
public function actionMostLiked()
    {
        $limitThreadsResults = 10; // for performance reasons
 
        $page = $this->filterPage();
        $perPage = $this->options()->discussionsPerPage;

        $threadFinder = $this->getThreadRepo()->findThreadsWithMostLiked();
        $threadFinder->limitByPage($page, $perPage...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom