/** * Sets variables for view of "Default" page */ public function actionDefault() { $this->getSession()->start(); $template = $this->template; $template->title = "Kniha návštěv"; $template->posts = $this->guestbook->getViewableSubset(10); }