assign('massiv', $massiv); $cats = \DB::getAll("SELECT * FROM `tovar_category` WHERE `status`=1 ORDER BY `title`"); $smarty->assign('cats', $cats); $smarty->assign('kolvo', \DB::getAll("SELECT COUNT(*) FROM `s2` WHERE `status`=1")[0]['COUNT(*)']); ?>