I have a header.php , where my page bar is contained, which in turn has the breadcrumb and also what I call the "Toolbar" which are the action buttons related to the page that is being accessed. For example:
When the user accesses the "Clients" module, they will access client-list.php , which require_once at header.php .
The problem is that each module will have different buttons, just like the user will have permissions. So by accessing client-list.php , header.php should show the relevant client-list.php buttons, also considering the permissions .
How can I make my header.php identify which page / module is calling it through require_once so that it shows information relevant to that page / module?