Ticket #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: | 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
Change History
Note: See
TracTickets for help on using
tickets.
