CodeIgniter Forums
User Guide Error - Form Validation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: User Guide Error - Form Validation (/showthread.php?tid=19158)



User Guide Error - Form Validation - El Forum - 05-29-2009

[eluser]PV-Patrick[/eluser]
I am not sure if this is the correct place to post this; however I figured it would get noticed.

I believe there is an error in the User Guide docs for form validation. In the following section, there is a typo for the example given:

* It's missing a > sign after the 'member/signup' and I have made it bold in the following code.

"Associating a Controller Function with a Rule Group"
Code:
$config = array(
           'member/signup' =[b]>[/b] array(
                                    array(
                                            'field' => 'username',
                                            'label' => 'Username',
                                            'rules' => 'required'
                                         ),
                                    array(
                                            'field' => 'password',
                                            'label' => 'Password',
                                            'rules' => 'required'
                                         ),
                                    array(
                                            'field' => 'passconf',
                                            'label' => 'PasswordConfirmation',
                                            'rules' => 'required'
                                         ),
                                    array(
                                            'field' => 'email',
                                            'label' => 'Email',
                                            'rules' => 'required'
                                         )
                                    )
               );