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

XenForo Config Object

Discussion in 'XenForo Development Discussions' started by xf_phantom, Aug 31, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    Is there a way to extend the config object on event init_dependencies ???
    The problem is, that xenforo calls "setReadOnly" i haven't found any way to remove this without a fileedit :D http://framework.zend.com/manual/1.12/en/zend.config.theory_of_operation.html


    ATM i've just added some own params to the config.php file, which i'd like to move to a own config file (which is stored as xml file)

    I could probably get the old config as array, add my own values from my new config.xml file and then overwrite the config value in the XenForo Registry, but not sure if it's the best way.
    Anybody have a better idea?
     

Share This Page