CodeIgniter Forums
Menu and pages? - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: Best Practices (
+--- Thread: Menu and pages? (/showthread.php?tid=71472)

Menu and pages? - wishmaster - 08-17-2018


i am currently develop one site and i do not know how to implement my idea: site will contain pages with something like wordpress' shotcodes and menu with url like below.

My thought is that i should create one controller e.g. Page and library e.g. Menu, but i don not know how to combine them.

Any ideas.


RE: Menu and pages? - InsiteFX - 08-17-2018

If your creating pages then use the pages slug as the menu name or add a field
to the table for pages in the database for a menu name, then you can associate the
page name with the menu name.

RE: Menu and pages? - wishmaster - 08-17-2018

Thank for the help. I will try.