PHP Classes

File: examples/index.php

Recommend this page to a friend!
  Classes of Yuriy Tkachenko  >  Simple Flash Messages  >  examples/index.php  >  Download  
File: examples/index.php
Role: Example script
Content type: text/plain
Description: Demo index
Class: Simple Flash Messages
Display message with different CSS frameworks
Author: By
Last change: Added template
Date: 1 year ago
Size: 1,390 bytes


Class file image Download

__DIR__ . '/../vendor/autoload.php';

flash()->error(['Invalid email!', 'Invalid username!'])
warning('Warning message.')
info('Info message.')
success('Success message!');

<!doctype html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Test Bootstrap 3 default template example.</title>
    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="">

<a href=""><img style="position: absolute; top: 0; right: 0; border: 0;" src="" alt="Fork me on GitHub" data-canonical-src=""></a>
<br />

<div class="container" style="width: 600px;">

    <?php include_once '_menu.php'; ?>

    <hr />

    <?= flash() ?>

<!-- Latest compiled and minified JavaScript -->
<script src=""></script>
<script src=""></script>