PHP Classes

File: examples/foundation.php

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


Class file image Download

use Tamtamchik\SimpleFlash\TemplateFactory;


__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 Foundation 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>

<div class="row" style="width: 600px; margin: 0 auto;">

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

    <?= flash() ?>

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


For more information send a message to info at phpclasses dot org.