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

XML Document empty inside Model_AddOn->getAddOnXml

Discussion in 'XenForo Development Discussions' started by Hoffi, Jul 29, 2015.

Tags:
  1. Hoffi

    Hoffi Well-Known Member

    Hi Everybody,

    maybe I have a knot in my brain.

    I want to extend the XML Creation process for the AddOns, to implement some new Settings I habe added for my own purpose.

    So, I extend the Class XenForo_Model_AddOn.

    Then, I add this few Lines:

    PHP:
        public function getAddOnXml(array $addOn)
        {
            
    $rootNode parent::getAddOnXml($addOn);

            return 
    $rootNode;
        }
    But, teh responde from the parent function delivers NULL.

    Has anyone the idea, why? I epected the created XML DOM Element, ao that I can modify this at this place.
     
  2. Thomas.B

    Thomas.B Well-Known Member

    Hm, that's odd. It works for me. I also don't see any error in the code you posted. So the problem has to be somewhere else. The best would probably be to set a breakpoint before the call to the parent and then watch what happens...
     

Share This Page