1. Go to this page and download the library: Download kavezoo/kvadmin 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 / kvadmin example snippets
public function bootstrap(): void
{
parent::bootstrap();
// Load more plugins here
$this->addPlugin('KvAdmin', ['routes' => true, 'bootstrap' => true]);
}
use Cake\Core\Configure;
Configure::write('Bake.theme', 'KvAdmin');
Configure::write('Session', [
'defaults' => 'php',
'cookie' => 'NameOfCookie',
'timeout' => 4320, // 3 days
]);
public function initialize(): void
{
parent::initialize();
$this->loadHelper('KvAdmin.SystemIcon');
$this->loadHelper('KvAdmin.Icon');
$this->loadHelper('KvAdmin.KvForm');
}
declare(strict_types=1);
namespace App\Controller\Admin;
use KvAdmin\Controller\AppController as KvAdminAppController;
class AppController extends KvAdminAppController
{
public function initialize(): void
{
parent::initialize();
}
}
declare(strict_types=1);
namespace App\Controller\Member;
use KvAdmin\Controller\AppController as KvAdminAppController;
class AppController extends KvAdminAppController
{
public function initialize(): void
{
parent::initialize();
}
}