Update docs/en/howto/simple-contact-form.md

Minor code highlighting fix.
This commit is contained in:
Juan Molina 2012-10-08 00:11:57 +03:00
parent 0cce58040a
commit ab065b41bd

View File

@ -104,6 +104,7 @@ All forms have some basic validation built in email fields will only let the
The framework comes with a predefined validator called `[api:RequiredFields]`, which performs the common task of making sure particular fields are filled out. Below is the code to add validation to a contact form:
:::php
public function Form() {
// ...
$validator = new RequiredFields('Name', 'Message');