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

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>
    <body>
      <?=$this->include("partials/header")?>
      <?=$this->renderSection("content")?>
      <?=$this->include("partials/footer")?>
    <body>
</html> 
Would it be possible to include the "partials/header" on every view BUT not the logout.php one?
How to know which view is running when I am in the template php file.

Thank you!
Reply


Messages In This Thread
Display a partial view based on the current view name - by b126 - 06-22-2022, 09:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB