error(); if (!$smarty->loadCache($cacheKey, $pageData)) { $conditions = [['categoryId', 12, '!']]; // DND if ($cat) { $conditions[] = ['typeCat', $cat[0]]; $path[] = $cat[0]; array_unshift($title, Lang::$skill['cat'][$cat[0]]); } $skills = new SkillList($conditions); // menuId 14: Skill g_initPath() // tabId 0: Database g_initHeader() $pageData = array( 'page' => array( 'title' => implode(' - ', $title), 'path' => json_encode($path, JSON_NUMERIC_CHECK), 'tab' => 0 ), 'lv' => array( array( 'file' => 'skill', 'data' => $skills->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'); ?>