XF 2.2 Showing a message

Robert9

Well-known member
Imagine this situation.
You have a button, click on it and something happens behind the scenes.
But dont know, if you have clicked or not.

Normally XF shows automatically a message, when you save something for example.
How can i show such a message (just show it and let it disapear again)?
I am shure there is a function for this like:

showSomething(phrase xyz);


when i edit this message, i can see such a message: your changes have been saved.
 

Robert9

Well-known member
Hmm, should be something like this:
Code:
return $this->redirect($this->buildLink('profile-posts', $profilePost), \XF::phrase('your_profile_post_has_been_posted'));
but i dont get any message.
 
Last edited:
Top