Load Zend Framework only once - Skip Zend Framework libraries with the autoloader ?


Well-known member
I'm trying to use XenForo with Concrete5 to create a block to display last resources. Thanks to many posts here I found documentation for the autoloader. The problem is Concrete5 also uses Zend so there's a clash with similar functions. I've cheated and use:
     error_reporting( E_ALL ^ E_NOTICE ^ E_USER_NOTICE ^ E_WARNING);
Which allows me to access to XenForo options, visitor object and even some of the models.

The problem is when I want to use some methods from models the trick doesn't use anymore.

So is there a way to skip the Zend Framework libraries when I call the XenForo autoloader?


Well-known member
That's not clean, but it works: I've renamed the library /concrete/libraries/3rdparty/Zend/db to /concrete/libraries/3rdparty/Zend/db2
XenForo seems to use more libraries from the Zend Framework than concrete5 anyway.