Posted by rut on 11/27/05 20:09
I have this in a .inc (include file):
<title> <?php $page_title; ?></title>
in the php page I have this:
<?php
$page_title = 'Reidsville Christian Church';
include('./include/template.inc');
?>
This works well.
I'd like to do the same for the .css file to include in the php page.
Something like this:
In template.inc
<link href= $page_css rel="stylesheet" type="text/css">
In index.php
<?php
$page_title = 'Reidsville Christian Church';
include('./include/template.inc');
$page_css = 'index.css';
?>
This doesn't work. I suspect I'm refering to the $page_css incorrectly
in the template.inc file.
Can someone help on this?
Thanks
Rut
Navigation:
[Reply to this message]
|