grisha2217
Active member
Hi guys.
I have extended controller:
When i try get $response value, xenforo redirect me to some forum, how i can get params from forum controller response? Thanks.
I have extended controller:
PHP:
class Test_ForumSearchThreads_ControllerPublic_Thread extends XFCP_Test_ForumSearchThreads_ControllerPublic_Thread
{
/* XenForo_ControllerPublic_Forum $forumController */
private $forumController;
public function __construct(Zend_Controller_Request_Http $request, Zend_Controller_Response_Http $response, XenForo_RouteMatch $routeMatch) {
parent::__construct($request, $response, $routeMatch);
$this->forumController = new XenForo_ControllerPublic_Forum($request, $response, $routeMatch);
}
public function actionIndex()
{
$parent = parent::actionIndex();
if ($parent instanceof XenForo_ControllerResponse_View)
{
if (// not important condition)
{
$fstModel = $this->_getForumSearchThreadsModel();
// here i set some params in forum controller request (node_id, page etc)
$response = $this->forumController->actionForum();
}
}
return $parent;
}
}
When i try get $response value, xenforo redirect me to some forum, how i can get params from forum controller response? Thanks.