[ 'view' => 'rss' ] ]; /** * get single page from slug * * * @param string $slug */ public function indexAction() { $siteRepository = new SiteRepository(); $site = $siteRepository->findOne(); $postRepository = new PostRepository(); $posts = $postRepository->find($this->limit); // change type header('Content-Type: text/xml'); $this->render($this->page, [ 'site' => $site, 'posts' => $posts ]); } }