TYPO3 module的加载

unset($MCONF);
require('init.php');
require('template.php');

	// Find module path:
$temp_M = (string)t3lib_div::_GET('M');
if ($temp_path = $TBE_MODULES['_PATHS'][$temp_M])	{
	$MCONF['_'] = 'mod.php?M='.rawurlencode($temp_M);
	require($temp_path.'conf.php');
	$BACK_PATH='';
	require($temp_path.'index.php');
} else {
	#debug($TBE_MODULES);
	die('Value "'.htmlspecialchars($temp_M).'" for "M" was not found as a module');
}


主要负责,根据请求参数‘M’(module名称)加载相应的module
  • 加载配置文件 conf.php
  • 加载主文件 index.php

你可能感兴趣的:(PHP)