loadCache($cacheKey, $pageData)) { $classes = new CharClassList(); // menuId 12: Class g_initPath() // tabId 0: Database g_initHeader() $pageData = array( 'page' => array( 'title' => Util::ucFirst(Lang::$game['classes']), 'path' => "[0, 12]", 'tab' => 0 ), 'lv' => array( array( 'file' => 'class', 'data' => $classes->getListviewData(), 'params' => [] ) ) ); $smarty->saveCache($cacheKey, $pageData); } $smarty->updatePageVars($pageData['page']); $smarty->assign('lang', Lang::$main); $smarty->assign('lvData', $pageData['lv']); // load the page $smarty->display('list-page-generic.tpl'); ?>