Skip to content

Instantly share code, notes, and snippets.

View sminnee's full-sized avatar

Sam Minnée sminnee

View GitHub Profile
@sminnee
sminnee / gist:2467965
Created April 23, 2012 01:08
Validation refactoring in Form.php
diff --git a/forms/Form.php b/forms/Form.php
index 3bf9cbe..ff3c1cf 100644
--- a/forms/Form.php
+++ b/forms/Form.php
@@ -195,31 +195,33 @@ class Form extends RequestHandler {
);
/**
- * Set up current form errors in session to
- * the current form if appropriate.