I'm building a forum in PHP and MySQL (for the funs). And I'm looking for a more elegant, cleaner, nicer, smarter way of strcturing it. I usually do it like this:
page.php
<?php include 'header.php' ?>
<?php code for this specific page ?>
content <?php loops and shit all over ?>
<?php include 'footer.php' ?>
In the header file I have stuff I need on all pages like db connection, functions etc.
I'm just a hobbycoder and CakePHP, zend framwork is just too much for me. I just get sweaty when I see it. But maybe there is a super lightweight MVC out there that i could try using :/?