git-svn-id: http://xe-core.googlecode.com/svn/trunk@393 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-13 07:27:53 +00:00
parent 4e044cbbfd
commit 3890c0c97c
40 changed files with 682 additions and 82 deletions

View file

@ -252,6 +252,10 @@
$instance_name = sprintf("%s%s",$module,"Model");
$class_file = sprintf('%s%s.%s.php', $class_path, $module, $type);
break;
case 'class' :
$instance_name = $module;
$class_file = sprintf('%s%s.class.php', $class_path, $module);
break;
default :
$type = 'view';
$instance_name = sprintf("%s%s",$module,"View");
@ -274,7 +278,10 @@
// 생성된 객체에 자신이 호출된 위치를 세팅해줌
$oModule->setModule($module);
$oModule->setModulePath($class_path);
$oModule->init();
if(method_exists($oModule, 'init') && !$GLOBALS['_inited_module'][$module][$type]) {
$GLOBALS['_inited_module'][$module][$type] = true;
$oModule->init();
}
// GLOBALS 변수에 생성된 객체 저장
$GLOBALS['_loaded_module'][$module][$type] = $oModule;