PHP Classes

File: resources/views/errors/form-validation.php

Recommend this page to a friend!
  Classes of Kabir Hossain   Sage   resources/views/errors/form-validation.php   Download  
File: resources/views/errors/form-validation.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Sage
Demo application of Web development framework
Author: By
Last change:
Date: 1 year ago
Size: 735 bytes
 

Contents

Class file image Download

<?php
   
/*$errors = $errors ?? session('errors');

    //displaying all errors
    if($errors) {
        echo '<div class="ml-5">';
        foreach ($errors as $item) {
            echo '<span class="text text-danger">' . explode('.', $item[0])[0] . '</span><br />';
        }
        echo '</div>';

        //clear errors after displaying
        session('errors', []);
    }

    //displaying notifications
    $notification_type = session('notification_type');
    if ($notification_type) {
        $notification_msg = session('notification_message');
        echo "<h3 class='text text-$notification_type'>$notification_msg</h3>";

        //clear errors after displaying
        session('notification_type', []);
    }*/

?>