Welcome Guest, Not a member yet? Register   Sign In
Display a partial view based on the current view name
#3

(This post was last modified: 06-24-2022, 12:04 AM by b126.)

(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 Smile
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
Reply


Messages In This Thread
RE: Display a partial view based on the current view name - by b126 - 06-24-2022, 12:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB