/**
  * Render method
  * called if a template have to be displayed
  * 
  * @param object o_site
  * @param object o_data
  * 
  * @return void
  */
 function render($o_site = null, $o_data = null)
 {
     if (!$this->is_cached($this->mainTemplate, SMARTY_CACHE_ID, $this->compile_id)) {
         $this->processDatas($o_site, $o_data);
         if (DEBUG) {
             echo 'Template is NOT cached';
         }
     } else {
         if (DEBUG) {
             echo 'Template is cached';
         }
     }
     header('Content-Type: text/html; charset=utf-8');
     if (!empty($GLOBALS['header_message_tpl']) && Request::moduleIsNotAStrangeModule()) {
         //Message à passer en variable dans le template header.tpl
         //print("<p class='archive'>".$GLOBALS['header_message_tpl']."</p>");
     }
     $this->display($this->mainTemplate, SMARTY_CACHE_ID, $this->compile_id);
 }
Example #2
0
<?php

/* 
 * phpMyVisites : website statistics and audience measurements
 * Copyright (C) 2002 - 2006
 * http://www.phpmyvisites.net/ 
 * phpMyVisites is free software (license GNU/GPL)
 * Authors : phpMyVisites team
*/
// $Id: index.php 220 2007-06-27 10:01:07Z matthieu_ $
define('INCLUDE_PATH', '.');
define('PLUGINS_PATH', INCLUDE_PATH . "/plugins/");
// For profiling, XDEBUG 2.x generates .out to be analysed with KcacheGrind or WinCacheGrind
@set_time_limit(0);
@error_reporting(E_ALL);
require_once INCLUDE_PATH . '/core/include/PmvConfig.class.php';
require_once INCLUDE_PATH . '/core/include/ApplicationController.php';
ApplicationController::init();
if (Request::moduleIsNotAStrangeModule()) {
    printTime('EOF', PRINT_TIME);
}