Welcome Guest, Not a member yet? Register   Sign In
Best solution for up/down links
#2

[eluser]obiron2[/eluser]
you need to get the menu elements into a sorted array. The easiest way is to

store your menu elements in a database with a sort_order value
Code:
select * from menu_elements order by sort_order DESCENDING
This will get the elements into a object (or array depending on your RETURN)

pass this to the view:
Code:
$data['menu_elements'] = $Menu_elements
$this->load->view('my_view',$data)
In your view, loop through the elements and produce the menu labels
Code:
foreach ($menu_elements as $ME)
{
  print anchor($ME->targetURL,$ME->title). "BR"

}


Messages In This Thread
Best solution for up/down links - by El Forum - 02-13-2009, 03:25 AM
Best solution for up/down links - by El Forum - 02-16-2009, 09:39 AM
Best solution for up/down links - by El Forum - 02-16-2009, 12:13 PM
Best solution for up/down links - by El Forum - 02-16-2009, 01:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB