From 968b6160fc214219e9f15fe8e47acbe066f41a35 Mon Sep 17 00:00:00 2001
From: Derek Allard The above function takes The above function takes three parameters as input:
To globally change the error delimiters, in your controller function, just after loading the Form Validation class, add this:
-<?php echo $this->form_validation->set_error_delimiters('<div class="error">', '</div>');
+$this->form_validation->set_error_delimiters('<div class="error">', '</div>');
In this example, we've switched to using div tags.
-Each of the two error generating functions shown in this tutorial can be supplied their own delimiters as follows:
<?php echo form_error('field name', '<div class="error">', '</div>'); ?>
-Or:
+Or:
<?php echo validation_errors('<div class="error">', '</div>'); ?>
@@ -826,7 +826,7 @@ class Member extends Controller {In your validation config file, you will name your rule group member/signup: +
In your validation config file, you will name your rule group member/signup:
$config = array(
@@ -1202,12 +1202,6 @@ must contain the name of the checkbox, the second parameter must contain its val
-
-
-
-
-
-
--
cgit v1.2.3-24-g4f1b