mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 14:55:13 -04:00
Add newsletter management functionality
This commit is contained in:
parent
90ee0a93c9
commit
b0197d189a
57 changed files with 1017 additions and 143 deletions
22
templates/Error.php
Normal file
22
templates/Error.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?
|
||||
|
||||
if(!$exception){
|
||||
return;
|
||||
}
|
||||
|
||||
$exceptions = [];
|
||||
|
||||
if($exception instanceof Exceptions\ValidationException){
|
||||
$exceptions = $exception->Exceptions;
|
||||
}
|
||||
else{
|
||||
$exceptions[] = $exception;
|
||||
}
|
||||
?>
|
||||
<ul class="error">
|
||||
<? foreach($exceptions as $ex){ ?>
|
||||
<li>
|
||||
<p><? $message = $ex->getMessage(); if($message == ''){ $message = 'An error occurred.'; } ?><?= Formatter::ToPlainText($message) ?></p>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue