• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

$finder / pagenav / total() / fetch() / unset some rows and normalize the pagenav and results

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
Well, we have the well known finder: $this->finder('XF:Thread').

Finder includes methods to separate results into pages for the <xf:pagenav>, like:
PHP:

کد:
        $total = $finder->total();
        $threads = $finder->limitByPage($page, $perPage)->fetch();

My question: AFTER $finder->fetch(); I need to unset some "rows" based on some checks which cannot be applied on the $finder query / where.

The basic thing is to not break the display on the...

Read more
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا