Skip to content

ConfigEditor

Keramat Jokar edited this page May 13, 2024 · 2 revisions

How to use

<?php

$fusionConfig = new ConfigEditor("application/modules/myModule/config/myConfig.php");
$fusionConfig->set("key1", "value 1");
$fusionConfig->set("key2", "value 2");
$fusionConfig->save();

__construct($file)

Initialize the config editor and load the file

String $file

set($key, $value)

Change a config value

String $key

String $value

save()

Save the edited config file

[String] get()

Get the edited config content

Clone this wiki locally