■
SimpleViewがデフォルトになった場合、Filter_SimpleViewに関数のエイリアスが
あったほうが便利かもしれません。例えばこんなのです。
function h($src) { return htmlspecialchars($src); }
テンプレートはこんな感じになるので、関数名が長いと面倒なんですよね・・・
<html> <head> <title>最小アプリ</title> </head> <body> <?php foreach ($errorList->getMessages() as $message) { print("<font color=\"#ff0000\">".htmlspecialchars($message)."</font><br>"); } ?> <form action="<?= $_SERVER['PHP_SELF'] ?>" method="post"> あなたの名前は?<br/> <br/> <input type="text" name="name" value=""> <input type="submit" name="dispatch_hello_world" value="送信"> </form> </body> </html>