Welcome Guest, Not a member yet? Register   Sign In
Calendar Class: multiple events on one day
#4

[eluser]sophistry[/eluser]
your solution is fine and works well with the CI calendar class. but, appending strings is not very flexible once you get the data into the view (which is exactly why the CI calendar class is sub par (compared to much of the rest of CI)). it forces you to have one key per day! then if you want to use the template you have to manipulate strings in the view or build HTML in the controller... ugh.

i suggested nested arrays because arrays are nicer to work with:

Code:
$arr1 = array();
$arr2 = array();
$nested_array = array($arr1, $arr2);


Messages In This Thread
Calendar Class: multiple events on one day - by El Forum - 02-12-2008, 11:16 AM
Calendar Class: multiple events on one day - by El Forum - 02-12-2008, 01:57 PM
Calendar Class: multiple events on one day - by El Forum - 02-12-2008, 03:14 PM
Calendar Class: multiple events on one day - by El Forum - 02-12-2008, 04:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB