'access', 'default' => 'danger', 'offDay' => ''];
public $offDaysShow = 0;
public $script = 'CalendarHelper.main()';
public function init()
{
if (!isset($this->monthUpdate['url'])){
Debug::dd('Не существует $monthUpdate["url"]');
}
if (!isset($this->dayUpdate['url'])){
Debug::dd('Не существует $dayUpdate["url"]');
}
if (!isset($this->colorClasses)){
Debug::dd('Не существует $colorClasses;
["accept" => "access", "default" => "danger", "offDay" => ""]');
}
parent::init();
$view = $this->getView();
AppAsset::register($view);
}
public function run()
{
echo Html::beginTag('section', ['class' => 'calendar-contain']);
echo Html::beginTag('aside', ['class' => 'calendar__sidebar']);
echo Html::beginTag('section', ['class' => 'title-bar']);
echo $this->button;
echo Html::input('date', null, date('Y-m-d'), ['class' => 'form-control', 'id' => 'date',]);
echo Html::endTag('section');
echo Html::tag('h2', date('l') . '
' . date('F d'), ['class' => 'sidebar__heading']);
echo '