[Koha-bugs] [Bug 11904] Proposal for a uniform way to send messages to user interface

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 17 13:53:37 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11904

Owen Leonard <oleonard at myacpl.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49059|0                           |1
        is obsolete|                            |

--- Comment #49 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 49263
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=49263&action=edit
[SIGNED-OFF] Bug 11904: New module Koha::Messages

This patch provides a uniform way to send messages to user interface.
It uses CGI::Session to store messages and allow to render them thanks
to a Template::Toolkit plugin (Koha::Template::Plugin::Messages)
and a template include file (messages.inc)

This patch doesn't introduce the new template include file anywhere. It
will require additional patches to make it work.

To use it, simply call messages_set() in a Perl script or module, then
put [% INCLUDE 'messages.inc' %] at the right place in the right
template file.

See POD documentation of Koha::Messages for more information.

Signed-off-by: Owen Leonard <oleonard at myacpl.org>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list