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

redirect and reload ?

Discussion in 'XenForo Development Discussions' started by DroidHost, Feb 8, 2011.

  1. DroidHost

    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
    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')
                        );
                }

        }
     
  2. DroidHost

    DroidHost Well-Known Member

    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:
     
  3. DroidHost

    DroidHost Well-Known Member

    I tried this
    $this->responseView but it is not working so help !
     
  4. DroidHost

    DroidHost Well-Known Member

    OK
    it work ok now
    but if you have any info
    plz share it :)
     

Share This Page