Best way to redirect someone from resource_view to members_profile
with returning a view?
?
with returning a view?
Code:
$resource = $this->assertViewableResource($params->resource_id, $this->getResourceViewExtraWith());
$visitor = \XF::visitor();
if ($visitor->user_id != 1)
{
$viewParams = [
'user' => $resource->User
];
return $this->view('XF:Members\Members', 'member_view', $viewParams);
}
?
Last edited: