Beispiel #1
0
function renderResultMessagesHtml(Dto_FormResult $result)
{
    echo PHP_EOL . '<ul class="formerrors">' . PHP_EOL;
    foreach ($result->getErrors() as $formError) {
        echo "  <li>" . $formError . "</li>" . PHP_EOL;
    }
    # foreach
    echo '</ul>' . PHP_EOL;
    echo PHP_EOL . '<ul class="forminformation">' . PHP_EOL;
    foreach ($result->getInfo() as $formInfo) {
        echo "  <li>" . $formInfo . "</li>" . PHP_EOL;
    }
    # foreach
    echo '</ul>' . PHP_EOL;
}