Mecha CMS

Add extra functionality to the core engine.

Alert

Table of Contents
  1. Usage 

Display alert messages throughout the page.

Usage 

Alert::error('This is an error message.');
Alert::info('This is an info message.');
Alert::success('This is a success message.');

echo $alert;

Result:

<alert type="error">This is an error message.</alert>
<alert type="info">This is an info message.</alert>
<alert type="success">This is a success message.</alert>

0 Comments

No comments yet.