hemant_bhardwaj
Well-known member
Working on widget for my addon but it's not working
i have defined the widget and file in Widget
and html file
include file
but ti's not working not even giving any error
any help ?
i have defined the widget and file in Widget
Code:
namespace Xenforoe\Discord\Widget;
use XF\Widget\AbstractWidget;
class Discordfeaturedlist extends AbstractWidget
{
public function render()
{
$finder = \XF::finder('Xenforoe\Discord:DiscordList');
$viewParams = $finder->where('discord_feature', 1)->fetchOne();
print_r($viewParams); // just trying to see that it's fetching it or not
$viewParam = [
'Discord_list' => $viewParams,
];
return $this->renderer('feature_widget', $viewParam);
}
public function getOptionsTemplate()
{
return null;
}
}
and html file
include file
but ti's not working not even giving any error
any help ?