fahad ashraf
Well-known member
I created a page from nodes
then i create a class and set it php callback that is retuning a view but it is not working kindly guide what i am doing wrong below is my code
then i create a class and set it php callback that is retuning a view but it is not working kindly guide what i am doing wrong below is my code
PHP:<?php namespace XenBulletin\XenStyle; class loadPage { public static function LoadPage(\XF\Pub\Controller\AbstractController $controller, \XF\Mvc\Reply\AbstractReply &$reply) { $viewParams = [ ]; $view = $controller->view('XenBulletin\XenStyle', 'SE_Forum', $viewParams); return $view; } }