getFacade()->resolveUrl($url); if ($calendar) { $this->setViewState('Calendar', $calendar); return; } } throw new THttpException(404, 'Page not found'); } public function getCalendar() { return $this->getViewState('Calendar'); } } ?>