diff options
Diffstat (limited to 'user_guide/helpers/html_helper.html')
-rw-r--r-- | user_guide/helpers/html_helper.html | 7 |
1 files changed, 6 insertions, 1 deletions
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);<br /> <code> $this->load->helper('html');<br /> <br /> +$attributes = array(<br /> + 'class' => 'boldlist',<br /> + 'id' => 'mylist'<br /> + );<br /> +<br /> $list = array(<br /> 'colors' => array(<br /> 'red',<br /> @@ -197,7 +202,7 @@ $list = array(<br /> );<br /> <br /> <br /> -echo ul($list);</code> +echo ul($list, $attributes);</code> <p>The above code will produce this:</p> |