XenForo
Administrative
- Thread starter
- Admin
- #1
Hi,
I want pass an array through the viewparam and I'm asking if there's a better solution for this instead of this what I did:
PHP:
Read more
ادامه مطلب...
I want pass an array through the viewparam and I'm asking if there's a better solution for this instead of this what I did:
PHP:
Code:
$UpgradeFinder = $this->finder('XF:UserUpgrade')
->order('user_upgrade_id', 'asc');
/** @var \XF\Entity\UserUpgrade $upgrades */
$upgrades = $UpgradeFinder->fetch();
$upgrade1 = $upgrades[1];
$upgrade2 = $upgrades[2];
$upgrade3 = $upgrades[3];
$viewParams = [
'costs_1' => $upgrade1['cost_amount'],
'costs_2' => $upgrade2['cost_amount']...
Read more
ادامه مطلب...