Beispiel #1
0
        require $sLangPath;
    }
    if (file_exists($sModLangPath)) {
        require $sModLangPath;
    }
    if (file_exists($sModFilePath)) {
        require $sModFilePath;
        //Kiem tra va goi function
        $sFuncName = $page . '_' . TYPE . '_' . $func;
        if (function_exists($sFuncName)) {
            $data = call_user_func($sFuncName);
        }
    }
    $_layout = 'layout.tpl';
    if (function_exists($mod . '_' . TYPE . '_' . 'layout')) {
        if ($name = call_user_func($mod . '_' . TYPE . '_' . 'layout')) {
            $_layout = $name;
        }
    }
    $_mod_layout = '';
    //news_user_mod_layout
    if (function_exists($page . '_' . TYPE . '_' . 'mod_layout')) {
        if ($name = call_user_func($page . '_' . TYPE . '_' . 'mod_layout')) {
            $_mod_layout = $name;
        }
    }
    $presenter = new Presenter($mod, $page, TYPE, $data, $_layout, $_mod_layout, false, $func);
    //Dua va o template
    $presenter->setLang(_getLang(), $_lang, $_mod_lang);
    $presenter->display();
}