You need to do 2 things..
You need to create the name_of_your_page.php file that goes in the root
And then create the name_of_your_page.tpl file that goes into your template directory.
The first file will look something like this
PHP Code:
<?php
require('./includes/config.php');
require('./includes/functions.php');
require('./includes/template.php');
require('./includes/database.php');
$db = new Database();
if (!$db->connect($db_host, $db_user, $db_pass, $db_name))
pretty_death($db->error);
$tpl = new Template('templates/name_of_your_page');
$cats = get_categories();
print_categories_in_menu($cats);
$tpl->parse_and_out(
'_root_',
array(
'title' => ' - Your page title',
)
);
?>
The tpl file will look something like this
PHP Code:
<!-- INCLUDE header.tpl -->
Insert your regular content here..
You can use html or php or whatever you like
<!-- INCLUDE footer.tpl -->
Aus
Bookmarks