function listPageAjax() { $fill = ''; $id = ''; if (isset($_GET["key"])) { $id = intval($_GET["key"]); $fill = photo::getListByKey($id); } $this->smarty->setCaching(false); system::$display = false; $this->smarty->assign("list", $fill); $cache_id = 'PHOTO_AJAX_LIST_' . $id; $file = MODULES_PATH . "/photo/backend/tpl/listAjax.tpl"; echo $this->smarty->fetch($file, $cache_id); }