========================================= ep.php ========================================= $ep_channel = "script"; $path_caller = __FILE__; include("ep.inc.php"); ----------------------------------------- $ep_channel 後でハンドラーを選択するのに用いる。 $path_caller エントリーポイントの物理パスを記録する ========================================= ep.inc.php ========================================= include(dirname(__FILE__)."/startup.inc.php"); new CEp(); ----------------------------------------- startup.inc.phpでenviroをセットアップする。 そして、component/bootの中にあるCEpを実行する。 ========================================= startup.inc.php ========================================= //-- build env $path_enviro = dirname(dirname(__FILE__))."/enviro/"; $env = array( "ep-channel"=>$ep_channel, "path-caller"=>isset($path_caller)?$path_caller:null, ); include($path_enviro."enviro.all.inc.php"); //-- connect to boot component $cfg = array(); include($env["path-config"]."/config.mcmpt.inc.php"); include($env["path-component"].$cfg["dir-mcmpt"]."/boot/index.inc.php"); CEnviro::setup($env); ----------------------------------------- startup.inc.phpでは次の二点を行う。 (1) $env配列をビルドする (2) componentフォルダ内にある、mainコンポーネントフォルダを 見つけ出し、その中にあるbootフォルダに接続する。 =========================================