Yii and Zend GData extension produces strange error

I tried to create Portle which displays latest album added into Picasa.

For this reason I did following




<?php 


Yii::import('application.vendors.*');

Yii::import('zii.widgets.CPortlet');

require_once 'Zend/Loader.php';

require_once 'Zend/Loader/Autoloader.php';

spl_autoload_unregister(array('YiiBase','autoload'));

spl_autoload_register(array('Zend_Loader_Autoloader','autoload'));

spl_autoload_register(array('YiiBase','autoload'));

Zend_Loader::loadClass('Zend_Gdata_Photos');

Zend_Loader::loadClass('Zend_Gdata_ClientLogin');

Zend_Loader::loadClass('Zend_Gdata_AuthSub');


class LatestAlbums extends CPortlet

{

    

    public $title='najnowsze zdjęcia';

    public $max;

    

    public function renderContent()

    {

        $feeds=Zend_Gdata_Photos::getUserFeed('wkssiodemka');        

        //echo CVarDumper::dump($feeds,2,true);

    }

    

}


?>



Now comes really strange behavior. Somehow, $this is recognized in Zend_Gdata_App as… instance of LatestAlbum (!) instead of Zend App instance (!)




class Zend_Gdata_App

{

/*..*/

    public function getFeed($uri, $className='Zend_Gdata_App_Feed')

    {

        return $this->importUrl($uri, $className, null);

    }

}



Any idea how this is possible?

Problem solved. It lies in


$feeds=Zend_Gdata_Photos::getUserFeed('wkssiodemka');  

. If I use Zend query in initialization, problem disappears.

Hi,

the implementation of zend fails for me.

I did put the Libraries Folders in the Zend Folder under Vendors in my core yii folder and i used the following lines to include the XMLRPC Client of Zend:


Yii::import('application.vendors.*');

require_once 'Zend/XmlRpc/Client.php';

And yii responds:


require_once(/Zend/XmlRpc/Client.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory

Any Ideas for Help?

Are you working on Win or Linux?