Welcome Guest, Not a member yet? Register   Sign In
User Guide Error - Form Validation
#1

[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'
                                         )
                                    )
               );




Theme © iAndrew 2016 - Forum software by © MyBB