summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries
diff options
context:
space:
mode:
authorAhmedul Haque Abid <a_h_abid@hotmail.com>2014-01-09 11:10:10 +0100
committerAhmedul Haque Abid <a_h_abid@hotmail.com>2014-01-09 11:10:10 +0100
commite334118cef11e9565b9219587d1f45ab140c9bcd (patch)
treed6e9f13f120a3502ae5b9e11dba4b6032f4de878 /user_guide_src/source/libraries
parentd8a3716f2055cabfcdebd0dcbc96b0783785df32 (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.rst6
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');