I'm creating a new component. I have a VERY long series of steps that are being processed within a helper file (called by the controller - in the postSavHook function).
Within the controller function as well as within the helper I would like to display an update to the user as each step completes; however, I'm not exactly sure what would be the best approach.
I've tried the enqueueMessage approach, but it never fires.
I AM able to display errors when needed using the 'throw new Exception' process.
Any suggestions on how I could get something like the enqueueMessage type display but called from the controller or helper and updated several times throughout the process of a long function?
These are some things I've tried:
//this works - although it obviously stops further code processing
throw new Exception(JText::_('COM_MYCOMP_ERROR_MESSAGE_NOT_FOUND'), 972);
//this doesn't seem to work (doesn't have any effect):
$app = JApplicationCms::getInstance('administrator');
$app->enqueueMessage('My Message here', 'success');
//and neither does this:
Also, this code is running from the admin (not front-end) so it's not an issue with having the template missing the system message display area (as the default admin template has that automatically included).