Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP Input Automatic?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #149478

    Hello.

    I have files that are php and would like to know to make the header.php and footer.php show up on every page that has a class container div in it.

    all my header and footer php are kept in my common folder. I use include at the moment but just do not want to have to do that to every page if possible.

    Her is the way I have it at the moment in the body tags

    <body>
    
    <?php include 'common/header.php'; ?>
    
    <div class="container">
    
    <div class="row">
    <div style="z-index:1020" class="col-xs-12 col-sm-4 col-md-4 col-lg-4 pull-left">   
    <div class="panel panel-default">
    <div class="panel-heading">
    <h4>Hosting Provider</h4>
    </div>
    <div class="panel-body">
    </div>
    </div>
    </div>
    </div>
    
    </div> <!-- Container Div -->
    
    <?php include 'common/footer.php'; ?>
    
    
    </body>
    
Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.