From d5406ca661c7b814012337f104c545fa9ed2db94 Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 15 Feb 2007 08:24:16 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@65 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- config/func.inc.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/config/func.inc.php b/config/func.inc.php index 5ce1def85..f3dd565f3 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -26,6 +26,27 @@ return ModuleHandler::getModuleInstance($module_name, $act_type); } + /** + * @brief module의 controller 객체 생성용 + **/ + function getController($module_name) { + return getModule($module_name, 'controller'); + } + + /** + * @brief module의 view 객체 생성용 + **/ + function getView($module_name) { + return getModule($module_name, 'view'); + } + + /** + * @brief module의 model 객체 생성용 + **/ + function getModel($module_name) { + return getModule($module_name, 'model'); + } + /** * @brief Context::getUrl($args_list)를 쓰기 쉽게 함수로 선언