diff options
author | Ahmedul Haque Abid <a_h_abid@hotmail.com> | 2014-01-09 11:10:10 +0100 |
---|---|---|
committer | Ahmedul Haque Abid <a_h_abid@hotmail.com> | 2014-01-09 11:10:10 +0100 |
commit | e334118cef11e9565b9219587d1f45ab140c9bcd (patch) | |
tree | d6e9f13f120a3502ae5b9e11dba4b6032f4de878 /user_guide_src/source/libraries | |
parent | d8a3716f2055cabfcdebd0dcbc96b0783785df32 (diff) |
Fixed coding styles in form_validation.rst
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r-- | user_guide_src/source/libraries/form_validation.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst index 3efdc862b..1076b1433 100644 --- a/user_guide_src/source/libraries/form_validation.rst +++ b/user_guide_src/source/libraries/form_validation.rst @@ -227,7 +227,7 @@ Your controller should now look like this:: $this->form_validation->set_rules('username', 'Username', 'required'); $this->form_validation->set_rules('password', 'Password', 'required', - array('required'=>'You must provide a %s.') + array('required' => 'You must provide a %s.') ); $this->form_validation->set_rules('passconf', 'Password Confirmation', 'required'); $this->form_validation->set_rules('email', 'Email', 'required'); @@ -295,8 +295,8 @@ your rules in the third parameter of rule setting method, like this:: 'username', 'Username', 'required|min_length[5]|max_length[12]|is_unique[users.username]', array( - 'required' => 'You have not provided %s.', - 'is_unique' => 'This %s already exists.' + 'required' => 'You have not provided %s.', + 'is_unique' => 'This %s already exists.' ) ); $this->form_validation->set_rules('password', 'Password', 'required'); |