An overview of all configuration options.
$config = new RobiNN\UiKit\Config(); // All options can also be set in the constructor
Name | Type | Default |
---|---|---|
cache | mixed | false |
debug | bool | false |
framework | string | 'bootstrap5' |
framework_path | array | Associative array - framework => path |
Returns an absolute path, a Twig\Cache\CacheInterface
implementation, or false.
$tpl_config = [
'cache' => $config->getCache(),
];
Set an absolute path, a Twig\Cache\CacheInterface
implementation, or false.
$config->setCache(__DIR__.'/path/to/cache');
Get debug option.
$tpl_config = [
'debug' => $config->getDebug(),
];
TPL engine debugging.
$config->enableDebug();
Get the currently loaded framework.
$framework = $config->getFramework();
Set the framework.
$config->setFramework('bootstrap5');
Get a path of the currently loaded framework.
$fw_path = $config->getFrameworkPath($framework);
Set the path to the framework.
$config->setFrameworkPath('bootstrap5', __DIR__.'/path/to/bootstrap5');