Built in success message

edited May 2012 in Modules
Hi, just wondered seen as you have covered pretty much everything in this system. Do you have any means of calling custom messages like the success and errors?

Comments

  • edited 5:23AM
    Are you wanting to do this from within your own admin controller that is inheriting from Fuel_base_controller? If so, success messages are set using the session classes flashdata with a key of "success". Errors can be set the same way with a key of "error" or by passing a variable of "error" to a view file.
    $this->session->set_flashdata('success', 'My custom message');
    You can view examples in the fuel/modules/fuel/controllers/module.php file.
Sign In or Register to comment.