error(); if (!$smarty->loadCache($cacheKey, $pageData)) { $conditions = [['categoryId', 12, '!']]; // DND if ($cat) { $conditions[] = ['typeCat', $cat]; $path[] = $cat; array_unshift($title, Lang::$skill['cat'][$cat]); } $skills = new SkillList($conditions); $pageData = array( 'file' => 'skill', 'data' => $skills->getListviewData(), 'params' => [] ); $smarty->saveCache($cacheKey, $pageData); } // menuId 14: Skill g_initPath() // tabId 0: Database g_initHeader() $smarty->updatePageVars(array( 'title' => implode(' - ', $title), 'path' => json_encode($path, JSON_NUMERIC_CHECK), 'tab' => 0 )); $smarty->assign('lang', Lang::$main); $smarty->assign('lvData', $pageData); // load the page $smarty->display('generic-no-filter.tpl'); ?>