Without knowing what the attach() method really does, I can't be sure, but I'm guessing this might work. (I'm assuming that attach() is simply returning a reference to the $calendar object itself. If it's returning some other object, then it won't work).
Or, assuming you want to attach each of the elements in $events, just:
PHP Code:
foreach($events as $evt) {
$calendar->standard('today')->standard('prev-next')->attach($evt);
}
Last edited by NogDog; 09-18-2012 at 09:33 AM.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks