[pxxo] / trunk / apps / helloworld / index.php  
ViewVC logotype

View of /trunk/apps/helloworld/index.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2583 - (download) (annotate)
Wed Jan 21 13:43:35 2009 UTC (19 months, 1 week ago) by touv
File size: 1403 byte(s)
tri + divers
<?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


mailto:sourcesup-support@cru.fr
ViewVC Help
Powered by ViewVC 1.0.0