developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#644 closed new feature (fixed)

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: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

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 (2)

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

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by bballizlife

jMessage class + jmesage jtpl plugin

Changed 12 years ago by bballizlife

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

comment:1 Changed 12 years ago by laurentj

  • Milestone set to Jelix 1.1 beta 1
  • review changed from review? to review+
  • Severity changed from normal to minor

comment:2 Changed 12 years ago by bastnic

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:3 Changed 12 years ago by laurentj

  • Documentation needed set

comment:4 Changed 12 years ago by laurentj

  • Documentation needed unset

documentation has been done.

Note: See TracTickets for help on using tickets.