If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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