<?php
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 encoding=utf-8 fdm=marker :
/**
* @package Helloworld
* @version ...
*/
// Réglages des chemins
$paths = array(
realpath(dirname(__FILE__) . '/pear'),
realpath(dirname(__FILE__) . '/classes'),
realpath(dirname(__FILE__) . '/templates'),
realpath(dirname(__FILE__) . '../../../pxxo'),
realpath(dirname(__FILE__) . '../../../widgets'),
realpath(dirname(__FILE__) . '../../../contrib/widgets'),
'.'
);
set_include_path(implode(PATH_SEPARATOR, $paths));
// Réglage de la session (si besoin)
//session_name('SKELSID');
//session_start();
// Variable de configuration globale (si besoin)
//require_once 'Pxxo/Registry.php';
//$config = Pxxo_Registry::getInstance();
//$config->exemple = 'foo';
// Lancement de la classe racine
require_once 'classes/HelloWorld.php';
// Création du widget racine qui contiendra tous les objets
$o = new HelloWorld(array(
'CacheMode' => false, // Active ou désactive le cache pour la hiérachie.
// Conseil : true en prod et false en dev
));
// Ajoute un corps HTML autour de notre widget
$o->addDecorator('Pxxo_Widget_Decorator_Core');
$o->main(); // Exécution de la classe principale
$o->dump(); // Affichage