Permalink
Browse files

Fixed HiddenField constructor arguments.

  • Loading branch information...
xdissent committed Oct 2, 2009
1 parent aa2c8c3 commit e4af690c393f1d0a7a0b8e418b27e66b9a7a1d9f
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/comment_form.php
@@ -15,7 +15,7 @@ class CommentForm extends Phorm
protected function define_fields()
{
// Define form fields
- $this->post_id = new HiddenField(255);
+ $this->post_id = new HiddenField(array('required'));
$this->first_name = new TextField("First name", 25, 255, array('required'));
$this->last_name = new TextField("Last name", 25, 255, array('required'));
$this->email = new EmailField("Email address", 25, 255, array('required'));

0 comments on commit e4af690

Please sign in to comment.