1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'XenForo Development Discussions' started by cclaerhout, Oct 31, 2013.

  1. cclaerhout

    cclaerhout 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_reportingE_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?
  2. cclaerhout

    cclaerhout 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.

    Attached Files:

Share This Page