Example #1
0
function LoadDefaultAdminModule_v2($strModuleName, $arrSharedData = array())
{
    //echo 'loading default module '.$strModuleName.' '.ADMIN_TPL_MODULE.'modules'.DS.$strModuleName.'.php';die();
    if (!file_exists(ADMIN_TPL_MODULE . $strModuleName . '.php')) {
        $strModuleName = DEFAULT_VIEW;
    }
    $strReturn = '';
    $objMain = new TemplateParser();
    $objMain->setTemplate(ADMIN_TPL_MODULE . $strModuleName . '.php');
    $objMain->setSharedData($arrSharedData);
    $strReturn = $objMain->returnContent();
    unset($objMain);
    return $strReturn;
}