diff options
Diffstat (limited to 'app/php/controls/UpcomingEvents.php')
-rw-r--r-- | app/php/controls/UpcomingEvents.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/app/php/controls/UpcomingEvents.php b/app/php/controls/UpcomingEvents.php index 1ba5600..ac0271b 100644 --- a/app/php/controls/UpcomingEvents.php +++ b/app/php/controls/UpcomingEvents.php @@ -1,18 +1,10 @@ <?php -Prado::using('Application.web.TemplateControl'); +Prado::using('Application.web.FacadeTemplateControl'); Prado::using('Application.facades.EventFacade'); -class UpcomingEvents extends TemplateControl { - - public function setFacade(Facade $facade) { - $this->setViewState('Facade', $facade); - } - - public function getFacade() { - return $this->getViewState('Facade'); - } +class UpcomingEvents extends FacadeTemplateControl { public function getUserToDisplay() { return $this->getControlState('user'); |