function buy() { if ($_POST) { Cards::ToSessionCard(); $this->redirect('/services/cards/basket/'); } else { $tree['seo_title'] = 'Покупка подарочной карты'; Funcs::setMeta($tree); View::render('cards/buy', $tree); } }