Location: PHPKode > projects > PHPLayouts > PHPLayouts/demo/index.php
<?php

/**
 * Example website
 *
 * @author rodix53
 * @package php-layouts
 * 
 * Last modification : Friday, 2th April 2010
 */

// Requiring template engine.
require_once '../libs/Template.php';

$tpl = new Template();
$tpl->setTemplateDir('templates');

// Activating layouts.
$tpl->layout()->activate();
$tpl->layout()->setLayoutDir('templates');
$tpl->layout()->setLayout('layout.phtml');

// Activating cache handler
$tpl->cache()->activate(3600);
$tpl->cache()->setCacheDir('cache');

// Display the main template.
$tpl->display('index.phtml');
Return current item: PHPLayouts