/** * Просмотр страниц: */ public function staticPagesAction(Application $application, Template $template) { $template->setParameter('menu', 'static'); $template->setParameter('submenu', 'static_pages'); $pages = StaticModel::GetPages(); ksort($pages); $this['pages'] = $pages; return true; }