• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

redirect and reload ?

DroidHost

Well-known member
#1
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
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')
                    );
            }

    }
 

DroidHost

Well-known member
#2
what I did is overriding Forum Index action so that show My template which I receive from there a Password to check
if it is correct I want to show the Forum....
and I have a function actionEnter which contain the code of the actionIndex of the original code of the forum

to be clear :confused: