assign( 'page_info', \DB::getAll( "SELECT * FROM `pages_category` WHERE `id`=?", $_GET['id'] ) );//получаем инфо о категории $list= \DB::getAll ( "SELECT * FROM `pages` WHERE `category`=?", $_GET['id'] ); for($i=0; $i assign( 'list', $list ); $smarty -> assign( 'sliders', $sliders ); /* ---------------------------------------------------------------------- 01.04.2023 Получаем спиосок категорий страниц ---------------------------------------------------------------------- */ $categories=\DB::getAll("SELECT * FROM `pages_category` ORDER BY `title`"); for ($i=0; $iassign('categories', $categories); /* ---------------------------------------------------------------------- 02.04.2023 Получаем самое читабельное ---------------------------------------------------------------------- */ $popular_pages=\DB::getAll("SELECT * FROM `pages` WHERE `status`=1 ORDER BY `see` DESC LIMIT 15"); for ($i=0; $iassign('popular_pages', $popular_pages); ?>