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?