mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 08:49:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@393 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4e044cbbfd
commit
3890c0c97c
40 changed files with 682 additions and 82 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue