I am building web application with 4 type of users and starting from top level(Admin) to lower level(end-user) , access rights for specific tab will be eliminated.
I have consider idea of using html helper but in this case I am not able to assign class and attributes to my li elements.
$this->load->helper('html');
$list = array(
'level 1',
'level 2',
'level 3',
'level 4'
);
$attributes = array(
'class' => 'boldlist',
'id' => 'mylist'
);
echo ul($list, $attributes);
let me know , how can I add attributes to list item.
Above mentioned code will generate this.
<ul class="boldlist" id="mylist">
<li>level 1</li>
<li>level 2</li>
<li>level 3</li>
<li>level 4</li>
</ul>