PHP code example of afbora / kirby-loader
1. Go to this page and download the library: Download afbora/kirby-loader library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
afbora / kirby-loader example snippets
return [
'afbora.loader.roots' => [
// register string paths
'/plugins/core',
'/plugins/payment',
'/plugins/shipping',
// register single directory
'/theme',
// register with callback
function () {
return option('custom.option.path');
},
]
];