View Single Post
Old 07-06-2009, 12:02 AM   #1 (permalink)
rguy84
The Contributor
 
Join Date: Jun 2009
Location: Seattle, WA
Posts: 76
Thanks: 1
rguy84 is on a distinguished road
Default 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?
__________________
Ryan | Blog | Twitter
Send a message via AIM to rguy84 Send a message via MSN to rguy84 Send a message via Yahoo to rguy84 Send a message via Skype™ to rguy84
rguy84 is offline  
Reply With Quote