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.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
#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)
Change History (6)
Changed 13 years ago by bballizlife
Changed 13 years ago by bballizlife
Here is a new patch with some modifications in jMessage class (no API change)
comment:1 Changed 13 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 13 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
Note: See
TracTickets for help on using
tickets.
jMessage class + jmesage jtpl plugin