PHP Classes

File: site/demos/notification.php

Recommend this page to a friend!
  Packages of Boss Ibrahim Mussa   Caelrik   site/demos/notification.php   Download  
File: site/demos/notification.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Caelrik
Build Web user interface from PHP components
Author: By
Last change:
Date: 8 days ago
Size: 305 bytes
 

 

Contents

Class file image Download
<?php

use Caelrik\Ui\Components\Notification;

// Usually filled from the session: Notification::make('flash')->fromFlash($flash).
return Notification::make('flash')
    ->success('Profile saved.')
    ->info('A new version is available.')
    ->error('The export failed. Errors stay until dismissed.');