Dynamic menu with template |
Hi , this is my layout :
Code: <?= $this->include('templates/header_admin') ?> I want insert a method called for every page (menu is the same for every controllers) , where put i the method to be accessible for every view ?
The method should be placed in the menu view that the layout loads.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Quick self-plug for my dynamic menus library: https://github.com/tattersoftware/codeigniter4-menus
|
Welcome Guest, Not a member yet? Register Sign In |