1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved I am to badly to setup an Config with Content

Discussion in 'Development' started by ErroX 404, Dec 18, 2018.

  1. ErroX 404

    ErroX 404 Spider

    Messages:
    10
    Hey i am Programming on a Report Plugin and have an error I think - ahm- I know its my fail
    And I need some help

    I add this to log the Report
    PHP:
    $this->onReport = new Config($this->getDataFolder() . $reportetConfig::YAML);
        
    $this->grund $grund;
        
    $this->getConfig()->save();
    But its only create a empty config
    How can help me
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    You didn't put any data into the config, at least as far as we can know from your post. What would you even expect to be in the config?
     
  3. ErroX 404

    ErroX 404 Spider

    Messages:
    10
    I won't to save what is in the var $grund
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Then you have to set it to the config.
    PHP:
    $this->onReport = new Config(...);
    $this->onReport->setAll($grund);
    $this->onReport->save();
     
  5. ErroX 404

    ErroX 404 Spider

    Messages:
    10
    Thanks now it's work
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.