ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,687
- Points
- 823
Reputation:
We're extending the API so that we can grab watched threads and we'd like to also include the first_post from each thread.
You can see what I'm doing here:
PHP:
Read more
Continue reading...
You can see what I'm doing here:
PHP:
Code:
class DNWatchedThreads extends AbstractController
{
public function actionGet()
{
$page = $this->filterPage();
$perPage = 10;
$visitor = \XF::visitor();
/** @var \XF\Repository\Thread $threadRepo */
$threadRepo = $this->repository('XF:Thread');
$threadFinder =...
Read more
Continue reading...