Sanitizing
Controller has sanitizer. This manual is temporary because function
of sanitizing is not completed to create. It's not automatically. But you can
access Sanitizer(CSanitize) by next way. Please see functions in sanitize.php.
Next is example to call htmlspecialchars all.
| in Controller |
function action( &$c )
{
$email = $c->sanitize->html( $_POST["email"] );
$email = $c->s->html( $_POST["email"] );
$email = $c->s->post("email");
}
|
| in View |
<h3><?php print $sanitize->html( $data["email"] ); ?></h3>
<h3><?php print $s->html( $data["email"] ); ?></h3>
|
|