e107 Developer Guide
  • Welcome
  • Getting Started
    • Hello world example
    • Folder structure
    • Database structure
    • Debugging & problem solving
  • Classes and methods
    • Introduction
    • Alerts
    • Cache
    • CSS
    • Database
    • Date
    • Events
    • Forms
    • Javascript
    • Language
    • Logging
    • Meta
    • Parser
    • Plugins
    • Preferences
    • Redirection
    • Render
    • Route
    • URLs
    • User Data
  • Plugin development
    • Introduction
    • Plugin Builder
    • Admin-UI (User Interface)
    • Installation & configuration
    • Plugin shortcodes
    • Internationalisation (LAN)
    • Extending core functionality (addons)
    • Upgrading legacy plugins
  • Theme development
    • Introduction
    • Installation & configuration
    • Layout & templates
    • Theme Shortcodes
    • Styling (CSS)
    • Upgrading legacy themes
  • Templates, shortcodes & constants
    • Introduction
    • Templates
    • Shortcodes
    • Core Shortcodes
    • Constants
  • How-to's / FAQs
    • How to...
Powered by GitBook
On this page
  • Introduction
  • Alerts methods
  • addSuccess()
  • addError()
  • addWarning()
  • addInfo()
  • addDebug()
  • render()

Was this helpful?

Export as PDF
  1. Classes and methods

Alerts

Please note: This page is under construction and has not been finished yet.

Introduction

Use the following to retrieve the alerts class object.

$mes = e107::getMessage();

Alerts methods

addSuccess()

$mes = e107::getMessage();
$mes->addSuccess('You did it!');

addError()

$mes = e107::getMessage();
$mes->addError('There was a problem!');

addWarning()

$mes = e107::getMessage();
$mes->addWarning('You do not have access to this area!');

addInfo()

$mes = e107::getMessage();
$mes->addInfo('Please take note!');

addDebug()

$mes = e107::getMessage();
$mes->addInfo('Please take note!');

render()

None of the above methods will output anything, until you use this method to render them.

$mes = e107::getMessage();
$mes->addInfo('Please take note!');
echo $mes->render();
PreviousIntroductionNextCache

Last updated 4 years ago

Was this helpful?

Messages assigned here will only be displayed when is active.

debug mode