07-06-2009, 12:02 AM
|
#1 (permalink)
|
|
The Contributor
Join Date: Jun 2009
Location: Seattle, WA
Posts: 76
Thanks: 1
|
Breaking Pages Up
I am playing around with an idea. I have both a breadcrumb and a YUI menu bar on my page. I took from the opening <html> tag to the opening main content tag and threw them all into a file and include that. I gave the text that goes between <title> a variable. So now each page on the back end looks like:
PHP Code:
<?php
$page_title = 'xxx';
$bread = 'YYY'; // I give my pages {sitename} :: {article title}
include_once('header.php');
?>
{content}
<?php
include_once('footer.php');
?>
This makes things so much cleaner and faster. However now the source layout looks crappy. Has anybody done this? Thoughts?
|
|
|