includes
Posted: Thu Jul 28, 2005 6:35 am
I work on a website which uses an index template with a content area. A content file holds a list of variables like:
if ($page=home) include 'home.php';
then home would be pulled into the index content area.
The other way would be having a header,footer and nav bar, pulled into each page, which would be the best? Does the first way make the site any slower? As if not it's much easier to keep it that way than change all the files.
if ($page=home) include 'home.php';
then home would be pulled into the index content area.
The other way would be having a header,footer and nav bar, pulled into each page, which would be the best? Does the first way make the site any slower? As if not it's much easier to keep it that way than change all the files.