Permalink
Browse files

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

Minor code highlighting fix.
  • Loading branch information...
1 parent 0cce580 commit ab065b41bd5888bd3ad8e222bc62a43befff3fc2 @Juanitou Juanitou committed Oct 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 docs/en/howto/simple-contact-form.md
View
1 docs/en/howto/simple-contact-form.md
@@ -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');

0 comments on commit ab065b4

Please sign in to comment.