Config File
Last updated
Last updated
The config file contains all the extension's configuration details. Under the config folder you will find the config.php file, In this file use the $config variable and pass an array of key-value pairs. This array has all the configuration keys and values. This $cofig array will resolve in miniCal core automatically.
Below is a list of each key and its default values.
Key | Value | Requirement | Default value |
---|---|---|---|
miniCal allows us to set custom configurations along with the prefined key-values, pass your key-value pair into the config array.
"logo" this key contains the value path of the extension logo, you can place it inside of your extension folder inside any subfolder. You can name this subfolder accordingly.
For e.g.
For retrieving any configuration key use the given syntax below.
At the place of $this->module_name, you can also use your extension folder name.
Load configuration key on controllers/Models
Load configuration key on Libraries/Hooks
name
This key contains the extension name as a value.
Required
"Extension name" (String)
description
This key will conation the short description of the extension.
Required
"Extension description" (String)
is_default_active
This key will specify whether this extension will be activated by default or not.
Required
0 (boolean)
version
This key contains the current version of the extension.
Optional
"1.0.0" (String)
logo
This key contains the extension icon path.
Optional
"" (String)
view_link
This key contains the route name of the page you want to load on this link click.
Optional
"" (String)
setting_link
This key same as the view link, except this key will load the setting page for the extension.
Optional
"" (String)
categories
This key reflected the extension category.
Optional
array('') (array)
marketplace_product_link
This key will have the link of extension of miniCal marketplace.
Optional
"" (String)