Ticket #644 (closed new feature: fixed)

Opened 2 years ago

Last modified 18 months ago

jMessage, manage messages in session and display them in templates

Reported by: bballizlife Owned by:
Priority: normal Milestone: Jelix 1.1 beta 1
Component: jelix:utils Version: trunk
Severity: minor Keywords:
Cc: Php version:
Review: review+ Hosting Provider:
Blocked By: Documentation needed: no
Blocking:

Description

Here is a patch for the jMessage class and the jTpl plugin {jmessage}.

jMessage API is :

  • jMessage::add($msg, $type);
  • jMessage::clear($type);
  • jMessage::clearAll();
  • jMessage::get($type);
  • jMessage::getAll();

How to use the jtpl plugin :

{jmessage}  // display all messages
{jmessage 'error'}  // display only messages that have the 'error' type

Attachments

jmessage.patch (4.5 kB) - added by bballizlife 2 years ago.
jMessage class + jmesage jtpl plugin
jmessage-2.patch (4.1 kB) - added by bballizlife 2 years ago.
Here is a new patch with some modifications in jMessage class (no API change)

Change History

Changed 2 years ago by bballizlife

jMessage class + jmesage jtpl plugin

Changed 2 years ago by bballizlife

Here is a new patch with some modifications in jMessage class (no API change)

Changed 2 years ago by laurentj

  • review changed from review? to review+
  • severity changed from normal to minor
  • milestone set to Jelix 1.1 beta 1

Changed 2 years ago by bastnic

  • status changed from new to closed
  • resolution set to fixed

seems to be ok for me, so i close it.

Changed 2 years ago by laurentj

  • docneeded set

Changed 18 months ago by laurentj

  • docneeded unset

documentation has been done.

Note: See TracTickets for help on using tickets.