امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hey
I was wondering and struggling all day on how to make XenForo return a file to the user after a request.
I managed to get it working on direct url access. /xxxx/download
PHP:
Read more
I was wondering and struggling all day on how to make XenForo return a file to the user after a request.
I managed to get it working on direct url access. /xxxx/download
PHP:
کد:
public function actionDownload(ParameterBag $params)
{
$visitor = \XF::visitor();
// Check if the user is logged in
if (!$visitor->user_id) {
return $this->error('You must be logged in to download scripts.');
}
$client = \XF::app()->http()->client()...
Read more
