0
I have a header.php, where is contained my page bar, which in turn has the breadcrumb and also what I call "Toolbar" which are the action buttons related to the page being accessed. For example:
When the user accesses the "Customers" module, he will access client-list.php, that makes a require_once in the header.php.
The problem is that each module will have different buttons, just as the user will have permissions. So while accessing client-list.php, the header.php shall display relevant buttons to client-list.php, also considering the permissions.
How can I make mine header.php identify which page/module is calling it through require_once to show information relevant to this page/module?
Use variables from session PHP, so you can store data between pages.
– lazyFox