[RSS Feed/News] How to refresh and display message

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I need to display a message after page refresh.
Currently if the message is returned the page is not refreshed, and if refreshed no message is displayed.
Does anyone know how can do both?

PHP
Code:

Code:
        //...
        $message = $result['message'];
        $this->message(\XF::phrase($message));
        $refreshPage = true;
      
        return $this->view('FOX\Products:Product\Index', 'fox_products_index', [
            'refreshPage' => $refreshPage
        ]);
        //...

TEMPLATE...

Read more
Read more about this Feed . . .
 
Status
Not open for further replies.
Back
Top Bottom