Configuration

Configuration file is located at config/theme.php for themes and config/plugin.php for plugins.

Any setting variable can be accessed in Main.php like:

$this->config( 'setting.key' );

You can add your own settings by appending them to the configuration array:

    'myapi' => [
        'key' => 'jdsldjsfl12938nfk',
    ],

    'url' => 'http://api.com',

And access them in Main.php:

class Main extends Theme
{
    public function connect_api()
    {
        $key = $this->config->get('myapi.key');

        $url = $this->config->get('url');

        // MY CODE
    }
}