CodeIgniter Forums
Calendar and multiple events the same date - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Calendar and multiple events the same date (/thread-51164.html)



Calendar and multiple events the same date - El Forum - 04-23-2012

[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


Calendar and multiple events the same date - El Forum - 04-23-2012

[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
        )

)