public function execute() { $news = array(); if ($this->testPermission('view_news')) { $news = DbNews::GetLastNews(10); $this->news = $news; } }