1. Go to this page and download the library: Download kavezoo/jeffadmin 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/ */
kavezoo / jeffadmin example snippets
return [
// …
'JeffAdmin' => [],
];
public function bootstrap(): void
{
parent::bootstrap();
$this->addPlugin('JeffAdmin');
}
use Cake\Core\Configure;
Configure::write('Bake.theme', 'JeffAdmin');
Configure::write('Session', [
'defaults' => 'php',
'cookie' => 'NameOfCookie',
'timeout' => 4320, // 3 days
]);
declare(strict_types=1);
namespace App\Controller\Admin;
use JeffAdmin\Controller\AppController as JeffAdminAppController;
class AppController extends JeffAdminAppController
{
public function initialize(): void
{
parent::initialize();
}
}