summaryrefslogtreecommitdiff
path: root/app/frontend/controls/CalendarSelection.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend/controls/CalendarSelection.php')
-rw-r--r--app/frontend/controls/CalendarSelection.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/frontend/controls/CalendarSelection.php b/app/frontend/controls/CalendarSelection.php
new file mode 100644
index 0000000..e53aa36
--- /dev/null
+++ b/app/frontend/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();
+ }
+ }
+
+}
+
+?>