CodeIgniter Forums

Full Version: Calendar and multiple events the same date
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]ReyPM[/eluser]
Hi, I'm trying to build a calendar using CI Calendar class and all is fine when one event occur per day but I like to show more than one event per day, is this possible using the CI calendar class? Any tips or help to do this?

Cheers and thanks

El Forum

[eluser]NotDior[/eluser]
This is possible, but you have to build your arrays, for the dates with another level. So basically you'll have something similar to this.

Code:
Array
(
    [4] => Array
        (
            [0] => April 4th Entry
        )

    [9] => Array
        (
            [0] => April 9th Entry
        )

    [10] => Array
        (
            [0] => April 10th
            [1] => April 10th
            [2] => April 10th
            [3] => April 10th
        )

)