Jump to content

[solved] Queue system notice in AJAX method?


Robin S
 Share

Recommended Posts

This is a question about using the system notices: $this->message(), $this->warning(), $this->error().

If I have a method that is is called by an AJAX request, I can't trigger a system notice immediately (would be great if this was possible).

But is there some way to "queue" the notice so that it appears on the next admin page load?

P.S. I know about the System Notifications module, but it's of no use if you need AJAX notices for a publicly shared module as there is no guarantee that the user will have System Notifications installed.

Edit: found it...
$session->message()
$session->warning()
$session->error()

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...