Display a partial view based on the current view name |
Dear all,
I would like to display a header and menu on every view on my app BUT the logout. I am using layouts already. Let's take a quick example from the internet : PHP Code: <html> How to know which view is running when I am in the template php file. Thank you! (06-22-2022, 04:16 PM)kenjis Wrote: See https://codeigniter4.github.io/CodeIgnit...o-the-view I see no direct relation to the question. I don't want to add dynamic data to my views, I (fortunately) know how to do this ![]() I am asking, how, in the view itself and based on its name (not in the controller), I can build a different display (insert or not a header). Then, is there a way to know the name of the view running in the view itself? Thank you |
Welcome Guest, Not a member yet? Register Sign In |