ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,662
- Points
- 823
Reputation:
I've extended the controller plugin for IP to pull in additional IP information using an API. When I do a var_dump against $country, $city, etc, I get the expected values. My issue is these variables are not making their way to the template.
PHP:
Read more
Continue reading...
PHP:
Code:
<?php
namespace Andrew\ModeratorPanel\XF\ControllerPlugin;
use \XF\Mvc\Entity\Entity;
class Ip extends XFCP_Ip
{
public function actionIp(Entity $content, array $breadcrumbs = [], $options = [])
{
$options = array_merge([...
Read more
Continue reading...