Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Fuel Config - saving module config
  • I'm calling \Config::save('adverts::page_typeadmin', $arr), but the otherwise correctly saved file doesn't have any file extension (expecting '.php' as default).

    When the saved file doesn't exist, $path is being set in core\classes\config\file, line 168

    $path = substr($path,0, -8).'config'.DS.$this->file;

    There's no ".$this->ext" as there is later on in the function:

    // make sure we have a fallback
    $path or $path = APPPATH.'config'.DS.$this->file.$this->ext;

    Should there be a ".$this->ext" on that line?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion