problems with Zend Gdata objects in my model |
[eluser]alpineedge3[/eluser]
Hi, I'm trying to add events to a google calendar and am running the code in model methods. I keep getting fatal errors like this: Code: Fatal error: Call to a member function newEventEntry() on a non-object in C:\wamp\www\delay-ad\system\application\models\scheduler_model.php I assume I just have object syntax incorrect. please help! Code: <?php I got the Gdata code from here: Zend Manual
[eluser]Unknown[/eluser]
Hi, It looks like you're not creating the $this->service object. After you create the $client in the constructor, you probably want something like this: Code: $this->service = new Zend_Gdata_Calendar($client); In addition to the Zend docs, you can see here for snippets of code: http://code.google.com/apis/calendar/dev...tingSingle Cheers, -Ryan
|
Welcome Guest, Not a member yet? Register Sign In |