Improve Error Class?

22 views
Skip to first unread message

Peter

unread,
Sep 25, 2011, 7:13:50 AM9/25/11
to Simple PHP Framework
Any chance on improving the error class for form validation? Or adding
a separate form validation class which works similar to codeigniter?

I just find doing:
$this->form_validation->set_rules(last_name', 'Email', 'trim|required|
something');

is cleaner then:
$Error->blank($_POST['last_name'], 'last_name');
$Error->something($_POST['last_name'], 'last_name'); etc etc

Tyler Hall

unread,
Sep 25, 2011, 9:47:13 AM9/25/11
to simple-php...@googlegroups.com
I don't have any current plans to change how the Error class works,
but I'm always open to suggestions and code submissions if there's
something you'd like to change.

Tyler

> --
> You received this message because you are subscribed to the Google Groups "Simple PHP Framework" group.
> To post to this group, send email to simple-php...@googlegroups.com.
> To unsubscribe from this group, send email to simple-php-frame...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-php-framework?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages