<?php 
    if (hasErrors($options['messages'])) {
        ?>
		<h3>ERRORS:</h3>
		<?php 
        foreach ($options['messages']['errors'] as $error) {
            ?>
		<p style="padding-left: 25px;"><?php 
            echo $error;
            ?>
</p>
		<?php 
        }
        $options['messages']['errors'] = array();
    }
    if (hasNotices($options['messages'])) {
        ?>
		<h3>Notices:</h3>
		<?php 
        foreach ($options['messages']['notices'] as $error) {
            ?>
		<p style="padding-left: 25px;"><?php 
            echo $error;
            ?>
</p>
		<?php 
        }
        $options['messages']['notices'] = array();
    }
    if (hasWarnings($options['messages'])) {
        ?>
Beispiel #2
0
    $warnings = getWarnings();
    $allErrors = array_merge($errors, $warnings);
    foreach ($allErrors as $error) {
        ?>
										<li><?php 
        echo $error->getMessage();
        ?>
</li>
									<?php 
    }
    ?>
								</ul>
							</div>
						<?php 
}
if (hasNotices()) {
    ?>
							<div id="noticeBox">
								<?php 
    $notices = getNotices();
    foreach ($notices as $notice) {
        ?>
									<p><?php 
        echo $notice->getMessage();
        ?>
</p>
								<?php 
    }
    ?>
							</div>