protected function _prepareLayout() { if ($head = $this->getLayout()->getBlock('head')) { $head->setCanLoadCalendarJs(true); } return parent::_prepareLayout(); }