<?php if (Session::get_flash('error')): ?> <div class="alert-message error"> <?php echo implode('</p><p>', e((array) Session::get_flash('error'))); ?> </div> <?php endif; ?>
<?php if (Session::get_flash('error')): ?> <div class="alert-message error"> <?php $msg = implode('</p><p>', e((array) Session::get_flash('error'))); echo html_entity_decode($msg); ?> </div> <?php endif; ?>But I was wondering if there was a better solution to that problem. Thanks for your help!
return array( 'open_list' => '', 'close_list' => '', 'open_error' => '', 'close_error' => '~', );And then use show_errors() to retrieve the validation errors. This will return all your errors as a single string, separated by a '~'. You can use that to explode the string in the view, and foreach over the exploded result to display them. Problem with the oil admin template is that you would want to escape the error message, but obviously not the HTML, which is not possible.
It looks like you're new here. If you want to get involved, click one of these buttons!