Ticket #644 (closed new feature: fixed)

Opened 1 month ago

Last modified 1 month ago

jMessage, manage messages in session and display them in templates

Reported by: bballizlife Assigned to:
Priority: normal Milestone: Jelix 1.1 beta 1
Component: jelix:utils Version: trunk
Severity: minor Keywords:
Cc: Php version:
Review: review+ Hosting Provider:
Documentation needed: 0 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 on 07/09/08 15:37:56.
jMessage class + jmesage jtpl plugin
jmessage-2.patch (4.1 kB) - added by bballizlife on 07/10/08 15:39:54.
Here is a new patch with some modifications in jMessage class (no API change)

Change History

07/09/08 15:37:56 changed by bballizlife

  • attachment jmessage.patch added.

jMessage class + jmesage jtpl plugin

07/10/08 15:39:54 changed by bballizlife

  • attachment jmessage-2.patch added.

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

07/10/08 15:47:22 changed by laurentj

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

07/11/08 23:46:36 changed by bastnic

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

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

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed