Here is an eg how i organize them and how it works in detail.
/-
.|-admin
.|
.|-lib
.|..|-css
.|..|..|-coolBlack.css
.|..|..|-wineRed.css
.|..|..|-superSpecial.css
.|..|
.|..|-classes
.|..|..|-admin.cls.php
.|..|..|-database.cls.php
.|..|..|-mail.cls.php
.|..|..|-session.cls.php
.|..|..|-user.cls.php
.|..|
.|..|-inc
.|..|..|-functions.lib.php
.|..|..|-config.php
.|..|..|-tpl_secure.php
.|..|
.|..|-maps
.|..|..|-header.inc
.|..|..|-footer.inc
.|
.|-img
.|..|-ads
.|..|
.|..|-themes
.|.....|-coolBlack
.|.....|-wineRed
.|.....|-superSpecial
.|-index.php
this is what index.php may look like in bare minimum..
Code: Select all
<?php
require_once 'lib/inc/functions.lib.php';
startPage('Home');
?>
<table cellspacing="0" cellpadding="0" align="center">
<tr><td>Welcome to <?php echo SITE_NAME; ?>. Enjoy your stay.</td></tr>
</table>
<?php endPage(); ?>