Exemple #1
0
 function testDoApplication()
 {
     $Request = new XMessage();
     $Request->set('type', 'display');
     $Request->set('app', 'system.default');
     $Request->set('function', 'run');
     $Request->set('data', array());
     $Res = $this->FW->accept($Request);
     $Res->dump();
 }
Exemple #2
0
<?php

require_once '../../lib/base/util.class.php';
XUtil::addIncludePath(XUtil::makePath("../..", 'class'), XUtil::makePath("../..", 'lib'));
require_once 'XSystem.class.php';
$file = "../etc/site.ini";
define("SITE_ROOT", realpath("../"));
$Mes = new XMessage();
$Mes->set('type', 'display');
$Mes->set('app', 'bbs');
$Mes->set('function', 'run');
$Mes->set('data', array());
$FW = XSystem::factory($file, array('site.root' => SITE_ROOT));
$FW->accept($Mes);