So I’m creating a website with CodeIgniter, and It would be great, if I just could edit for example one config file in which I have specified all the menu, and it would edit it for all view files.
So basically in simple OOP i would do this just with a function, but what is the best way to do it in CodeIgniter? Should I use Helper for that?
Off the top of my head so bear with me if any syntax errors.
In your main controller use this:
You can then use $menu in your main template.