I've been trying to follow the featured thread dev tutorial to build a featured thread addon. I get this error when I try to go to a Node's options.
Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in /Demo/Portal/XF/Admin/Controller/Forum.php on line 12
Here is my code from that
Any ideas what im missing?
Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in /Demo/Portal/XF/Admin/Controller/Forum.php on line 12
Here is my code from that
PHP:
<?php
namespace Demo\Portal\XF\Admin\Controller;
use XF\Mvc\FormAction;
class Forum extends XFCP_Forum
{
}
protected function saveTypeData(FormAction $form, \XF\Entity\Node $node, \XF\Entity\AbstractNode $data)
{
parent::saveTypeData($form, $node, $data);
$form->setup(function() use ($data)
{
$data->demo_portal_auto_feature = $this->filter('demo_portal_auto_feature', 'bool');
});
}
Any ideas what im missing?