mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1269 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6f8e1fd915
commit
54442e2e18
22 changed files with 34 additions and 43 deletions
|
|
@ -15,6 +15,14 @@
|
|||
var $tpl_path = ''; ///< 컴파일 대상 경로
|
||||
var $tpl_file = ''; ///< 컴파일 대상 파일
|
||||
|
||||
/**
|
||||
* @brief TemplateHandler의 기생성된 객체를 return
|
||||
**/
|
||||
function &getInstance() {
|
||||
if(!$GLOBALS['__TemplateHandler__']) $GLOBALS['__TemplateHandler__'] = new TemplateHandler();
|
||||
return $GLOBALS['__TemplateHandler__'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 주어진 tpl파일의 컴파일
|
||||
**/
|
||||
|
|
@ -200,7 +208,7 @@
|
|||
// include 시도
|
||||
$output = sprintf(
|
||||
'<?php%s'.
|
||||
'$oTemplate = new TemplateHandler();%s'.
|
||||
'$oTemplate = &TemplateHandler::getInstance();%s'.
|
||||
'print $oTemplate->compile(\'%s\',\'%s\');%s'.
|
||||
'?>%s',
|
||||
"\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue