summaryrefslogtreecommitdiff
path: root/app/frontend/controls/CalendarSelection.php
blob: e53aa3667c6ca58d31933889b7b04a9e0fdc4089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();
        }
    }

}

?>