HOW TO disable specific dates in calendar?

Talk and info about common issues and learn how to do almost anything with ApPHP Calendar

Moderator: alexandrleonenko

Site Admin
Site Admin
Posts: 6030
Joined: Jan 7th, '09, 23:18

HOW TO disable specific dates in calendar?

Postby administrator » Jun 3rd, '12, 12:15

You have some embedded features, that allow you to disable specific dates in calendar.

1. You may disable specific week days.
To do this simple specify required days with SetDisabledDays() method.

Here the example:

Code: Select all

## disable certain days of the week:
## from 1 (Sunday) to 7 (Saturday). Ex.: 1,2 or 7

2. You may disable dates in the past for editing and deleting events.

Code: Select all

## *** allow editing events in past
## *** allow deleting events in past

Return to “ApPHP Calendar {HOW TO}”