Do you do this very often?
By that, I mean designing a website from scratch. No framework, no template, nothing. Instead of using MVC, you can use PHP includes like this:
It's actually a pretty simple way to code websites. I use it pretty frequently, especially when no login is needed.
What about you?
By that, I mean designing a website from scratch. No framework, no template, nothing. Instead of using MVC, you can use PHP includes like this:
Code:
<?php chdir(".."); require_once("inc/header.php"); ?>
<!-- Page goes here -->
<?php require_once("inc/footer.php"); ?>
It's actually a pretty simple way to code websites. I use it pretty frequently, especially when no login is needed.
What about you?







