session errors
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
* @var $content
|
||||
* @var string $resources
|
||||
*/
|
||||
\Josantonius\Session\Facades\Session::start();
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
@ -14,6 +15,7 @@
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="<?= $resources ?>/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="<?= $resources ?>/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
@ -68,7 +70,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<?php if (\Josantonius\Session\Facades\Session::get("error", false)): ?>
|
||||
<div class="alert alert-danger alert-dismissible" id="mainAlert">
|
||||
<?= \Josantonius\Session\Facades\Session::get("error"); ?>
|
||||
<?php \Josantonius\Session\Facades\Session::remove("error"); ?>
|
||||
<button type="button" class="btn-close" id="closeAlertBtn"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?= $content ?>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user