You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do you show multi-day events on a calendar? The following piece of code correctly shows events which start on a particular date, but it doesn't show events which span multiple days. I'm using the Indexed Event Collection.
Take a look at the find() method of the indexed collection and of basic collection. Indexed Collection only stores and finds events in an array with keys derived from eventBegin. The basic collection actually has some logic in its find() method to lookup period->containsEvent() or event->contains(date) etc.
So, your $eventCollection->find($day) only finds events under its array this->events[$day].
How are you creating/retrieving your collection?
You can supply your provider to Calendar and getEvents() to retrieve a basic collection
Or you can retrieve an array from your own provider
Hi,
How do you show multi-day events on a calendar? The following piece of code correctly shows events which start on a particular date, but it doesn't show events which span multiple days. I'm using the Indexed Event Collection.
Thanks
The text was updated successfully, but these errors were encountered: