threads

  1. LPH

    How To Grab a List of Latest Threads

    /** @var \XF\Repository\Thread $threadRepo */ $threadRepo = \XF::app()->repository('XF:Thread'); $threadFinder = $threadRepo->findThreadsWithLatestPosts(); dump($threadFinder); Next, you can do a loop to pull the threads foreach ($threads = $threadFinder->fetch() AS $threadId => $thread) {...
Top