امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I have some variables that I am getting from the address bar. These works perfectly in the controller. On the same page I have some widgets that display some statistics based on the variables from the address bar. Looking at my code below I think the issue is I can't figure out how to get parameterbag into the method, but I am not sure.
PHP:
$this->filter('var', 'int'); in widgets
PHP:
کد:
<?php
namespace CIS\Backend\Widgets;
use \XF\Widget\AbstractWidget;
use XF\Mvc\ParameterBag;
class Rating extends AbstractWidget
{
public...
