public static function setupRainTpl() { if (!class_exists('Tpl')) { /*** * Template Engine */ include XAPP_CONNECT_LEGACY . 'TplNew.php'; } Tpl::$cache_dir = XAPP_BASEDIR . '/cache/'; }