RSS Feed/News Extending IP ControllerPlugin

Status
Not open for further replies.

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:

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...
 
Status
Not open for further replies.
Top