diff options
Diffstat (limited to 'app/php/controls/CalendarSelection.php')
-rw-r--r-- | app/php/controls/CalendarSelection.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/php/controls/CalendarSelection.php b/app/php/controls/CalendarSelection.php new file mode 100644 index 0000000..e53aa36 --- /dev/null +++ b/app/php/controls/CalendarSelection.php @@ -0,0 +1,17 @@ +<?php + +Prado::using('Application.controls.FacadeTemplateControl'); + +class CalendarSelection extends FacadeTemplateControl { + + public function onPreRender($param) { + parent::onPreRender($param); + if (!$this->Page->IsCallBack) { + $this->Calendars->DataSource = $this->Facade->getAll(); + $this->Calendars->dataBind(); + } + } + +} + +?> |