mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-13 16:34:52 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@662 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
062bca7301
commit
d45cbb04a7
9 changed files with 93 additions and 39 deletions
|
|
@ -16,11 +16,16 @@
|
|||
$class_file = sprintf('%s%s.class.php', $class_path, $component);
|
||||
if(!file_exists($class_file)) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
|
||||
|
||||
// 클래스 파일을 읽은 후 객체 생성
|
||||
require_once($class_file);
|
||||
$eval_str = sprintf('$oComponent = new %s("%s","%s");', $component, $upload_target_srl, $class_path);
|
||||
@eval($eval_str);
|
||||
if(!$oComponent) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
|
||||
|
||||
// 설정 정보를 추가
|
||||
$component_info = $this->getComponent($component);
|
||||
$oComponent->setInfo($component_info);
|
||||
|
||||
return $oComponent;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue