1. Go to this page and download the library: Download samsonasik/ci4-album 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/ */
samsonasik / ci4-album example snippets
$psr4 = [
'App' => APPPATH, // To ensure filters, etc still found,
APP_NAMESPACE => APPPATH, // For custom namespace
'Config' => APPPATH . 'Config',
'Album' => APPPATH . 'ThirdParty/ci4-album/src', // <-- add this line
];
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Album extends BaseConfig
{
public $paginationPerPage = 10;
}
// app/Config/Album.php