From 904094a177488edeacbe8e184d788c286c3e3d9f Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 10 Feb 2009 14:00:34 +0000 Subject: Changed the default "type" of form_button() to "button" from "submit" in the form helper. --- user_guide/helpers/html_helper.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'user_guide/helpers/html_helper.html') diff --git a/user_guide/helpers/html_helper.html b/user_guide/helpers/html_helper.html index fd92f4dcb..e6a65277a 100644 --- a/user_guide/helpers/html_helper.html +++ b/user_guide/helpers/html_helper.html @@ -166,6 +166,11 @@ echo ul($list, $attributes);
$this->load->helper('html');

+$attributes = array(
+                    'class' => 'boldlist',
+                    'id'    => 'mylist'
+                    );
+
$list = array(
            'colors' => array(
                                'red',
@@ -197,7 +202,7 @@ $list = array(
            );


-echo ul($list);
+echo ul($list, $attributes);

The above code will produce this:

-- cgit v1.2.3-24-g4f1b