Yii Framework Forum: Trying to use Zend GData Library - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Trying to use Zend GData Library spl_autoload issues!! Rate Topic: -----

#1 User is offline   DarkNSF 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 287
  • Joined: 12-November 08
  • Location:Palm Bay, Florida

Posted 06 July 2010 - 05:18 PM

Yii::import('application.vendors.ZendGdata-1-10-6.library.*');
require_once('Zend/Loader.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');
Zend_Loader::loadClass('Zend_Gdata_AuthSub');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Calendar');



ERROR:
Fatal error: Class 'CExceptionEvent' not found in C:\Users\Administrator\Desktop\xampp\htdocs\mshi\yii-1.1.3.r2247\framework\base\CApplication.php on line 575



Why is Yii unable to reload??
0

#2 User is offline   DarkNSF 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 287
  • Joined: 12-November 08
  • Location:Palm Bay, Florida

Posted 06 July 2010 - 05:37 PM

I think the better question is "Does anyone know to go use Zend_Loader_Autoloader?"
0

#3 User is offline   Troto 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 09-March 10

Posted 08 July 2010 - 07:23 AM

require_once 'Zend/Loader/Autoloader.php';
Yii::registerAutoloader(array('Zend_Loader_Autoloader','autoload'));


and you don't have to manually import any class from Zend
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users