on_before_clean and Notification

Hi,

In on_before_clean() I'm setting a message like this $this->fuel->admin->set_notification($geo, 'info');, in case some action I perform there, fails.

Unfortunately, after the entry got saved, that message never shows up.

Did I miss something?

Comments

  • The notification only displays one message at a time so it may be getting overwritten by the successful save message instead.

    For errors in general, you can add use the add_error($msg) function or the model method $this->add_error($msg) and those will appear in the flash notification as an error (not as an info though).

  • I suspected that it got overwritten. I'll try add_error. Thanks!

Sign In or Register to comment.