HQCoder
Member
I have dealt with this problem
i write this code:
and it show error
can you give me the way to add new class extensions to XFRM?
i write this code:
PHP:
namespace HQCoder\ResourceVote\Pub\Controller;
class ResourceItem extends XFCP_ResourceItem
{
public function actionIndex(XF\Mvc\ParameterBag $params)
{
$parent = parent::actionIndex($params);
return $parent;
}
}
and it show error
ErrorException: [E_STRICT] Declaration of HQCoder\ResourceVote\Pub\Controller\ResourceItem::actionIndex() should be compatible with XFRM\Pub\Controller\ResourceItem::actionIndex(XF\Mvc\ParameterBag $params) in src\addons\HQCoder\ResourceVote\Pub\Controller\ResourceItem.php at line 20
can you give me the way to add new class extensions to XFRM?
Last edited: