pedro84 Posted October 22, 2006 Share Posted October 22, 2006 Hello Again:)I have splitted my source for the files:header.phpcontent.phpfooter.phpmenu.phpSource [part]:[code]<div id="bckg"></div><div id="left"><div id="menu"><ul class="menu_t"><li class="menu_item_lefth"> Michael-Schenker.com</li>[/code]My source is div based.I have serious problems with my template. I don't know where I have to include files to make pages with different content. Do I have to put my tamplate in index.php? Or can it be juest like I've splitted it?header.phpcontent.phpfooter.phpmenu.php?I have read many tutorials but I haven't found what I'm looking for [:) U2]Thanks in advance for helpGreetingsPedro Link to comment https://forums.phpfreaks.com/topic/24756-include-requiere-or-something/ Share on other sites More sharing options...
Design Posted October 22, 2006 Share Posted October 22, 2006 Place a table sort of like this:---------------------------|_______[sup][u]Header[/u][/sup]_________|| M| || E| Content || N| || U| || |____________________|_______[u][sup]Footer[/sup][/u]__________|And use either:[code]<?php include('example.php'); ?>[/code]OR[code]<?php require('example.php'); ?>[/code]to put the pages into those areas.the require() statement is better, because if an error occurs, it stops loading that page, instead of loading a faulty page. Link to comment https://forums.phpfreaks.com/topic/24756-include-requiere-or-something/#findComment-112854 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.