Exemple #1
0
<?php

require_once '../../etc/app.config.php';
require_once 'Hush/App.php';
$app = new Hush_App();
$app->setErrorPage('./404.php')->addMapFile(__MAP_INI_FILE)->addAppDir(__LIB_PATH_SERVER)->addAppDir(__LIB_PATH_WEBSITE);
/**
 * skip 404 page and trace exception
 * TODO : should be commented in www environment
 */
$app->setDebug(true);
$app->run(array('defaultClassSuffix' => 'Server'));
Exemple #2
0
<?php

require_once '../../etc/frontend.config.php';
require_once 'Hush/App.php';
$app = new Hush_App();
$app->setTplDir(__TPL_SMARTY_PATH)->setErrorPage('html/404.htm')->addMapFile(__MAP_INI_FILE)->addAppDir(__LIB_PATH_PAGE);
/**
 * skip 404 page and trace exception
 * TODO : should be commented in www environment
 */
$app->setDebug(true);
$app->run();