Categories > TinyButStrong general >

don't cache a template ?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: iMaTh
Date: 2007-08-21
Time: 11:43

don't cache a template ?

Hello, i want to cache 2 templates / 3.

<?php
session_start();

require_once('Class.Template.inc');
require_once('Zend/Date.php');
require_once('Class.Cache_Template.php');

  $TBS = new clsTinyButStrong ;

$TBS->PlugIn(TBS_CACHE, 'mainPage', '3600', 'tmp');

$TBS->LoadTemplate('templates/Header.tpl');
$TBS->LoadTemplate('templates/Menu.tpl', '+');
$TBS->LoadTemplate('templates/Footer.tpl', '+');

  $title = 'SuperSite' ;

  $login = $_SESSION['LOGIN'];

  $TimeStamp = new Zend_Date();
  $date = $TimeStamp->toString('dd MMMM y');
  $heure = $TimeStamp->toString('HH') .'h' .$TimeStamp->toString('mm') .'mn';

$TBS->Show() ;
?>

with this code all user have identique $_SESSION['LOGIN'] result so it's not good.
have you a solution please ?