DroidHost
Well-known member
I want to redirect the member to a Function on the same class and I want it to reload the page with the new View ....
this is my current code
this is my current code
PHP:
public function actionPassword()
{
$data = $this->_input->filter(array(
'password' => XenForo_Input::STRING,
));
if ($data['password'] == '1234')
{
$return = XenForo_Link::buildPublicLink('forums', $forum);
return $this->responseRedirect(
XenForo_ControllerResponse_Redirect::SUCCESS,
$return,
new XenForo_Phrase('Correct Password')
);
}
else
{
return $this->responseRedirect(
XenForo_ControllerResponse_Redirect::SUCCESS,
$this->getDynamicRedirect(),
new XenForo_Phrase('Password Wrong')
);
}
}