[RSS Feed/News] Help with a query

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I have a basic query that I am running in a widget:

PHP:

Code:
    public function render()
    {
        if(!\XF::visitor()->hasPermission('thoughts', 'viewOwn'))
        {
            return false;
        }

        $thoughtsFinder = $this->finder('TLS\Thoughts:Thought')
                    ->order('post_date', 'desc')
                    ->limit(10);

        if(!\XF::visitor()->hasPermission('thoughts', 'viewAll'))
        {
            $thoughtsFinder->where('user_id'...

Read more

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