[RSS Feed/News] Code Event Listener error following add-on demo

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I'm following the demo:

Let's build an add-on - XenForo 2.0 Documentation

xenforo.com
xenforo.com

When I try to save the code event listener I get this error:
"Callback Demo\Portal\Listener::forumEntityStructure is invalid (error_invalid_class)."

I've already created the Listener.php file in:
"public\forums\src\addons\Demo\Portal"

Heres the contents of Listener.php:
PHP:

Code:
<?php

namespace Demo\Portal;

use XF\Mvc\Entity\Entity;

class Listener
{
    public static function...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom