CodeIgniter Forums
Menu and pages? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: Menu and pages? (/showthread.php?tid=71472)



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

Hi,

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.

http://site.com/indastrial-machines/pumps/water-pump/model-xxx

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.

--
Vit


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.