Yii Framework Forum: Issues with 3rd party autoload classes - Yii Framework Forum

Jump to content

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

Issues with 3rd party autoload classes Rate Topic: -----

#1 User is offline   extesy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 14-January 09

Posted 27 May 2009 - 03:19 PM

I'm trying to integrate Yii with Web-Optimizer and getting issues related to Yii's autoload behavior.

Basically, Web-Optimizer loads only required libraries using the following code:



But during the call to class_exists() function, code flow goes into YiiBase::autoload() where it tries to load missing class using include($className.'.php') statement which fails with "no such file or directory" error because class name isn't the same as file name. Full call stack:



How can I suppress Yii's attempts to load those classes and let Web-Optimizer do it?
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,901
  • Joined: 04-October 08
  • Location:DC, USA

Posted 27 May 2009 - 08:02 PM

I think Web-Optimizer should call class_exists as follows:


0

#3 User is offline   extesy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 14-January 09

Posted 27 May 2009 - 09:32 PM

Cool, it works now. You're a genius, Qiang!  :D
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