Answer by Mitchell McKenna for Codeigniter How to Dynamically create menu

September 7 2010, 8:38pm

You could just make $data['menu'] = an multi-dimension array of (button_name, url)'s. Then in the view you pass this array to a plugin which generates the html menu based on that array.