Using FuelPHP, I was wondering how to add attributes on li tags for the ul method ul($list, $style = false).
https://fuelphp.com/docs/classes/html.html
Here is what I want to achieve
<ul id="sortable">
<li id="red">red</li>
<li id="blue">blue</li>
</ul>
Here is what I tried but no luck
public static function get_ads_order_ul(){
$items =array(array('id'=>'red','value'=>'red'),array('id'=>'blue','value'=>'blue'));
$attr = array('id' => 'sortable');
return Html::ul($items, $attr);
}
I ended up adding new function in /fuel/core/classes/html.php object.
result