PHP code example of easyadminfriends / easyadmindashboard-bundle
1. Go to this page and download the library: Download easyadminfriends/easyadmindashboard-bundle 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/ */
easyadminfriends / easyadmindashboard-bundle example snippets
return [
[...]
EasyAdminFriends\EasyAdminDashboardBundle\EasyAdminDashboardBundle::class => ['all' => true],
];
`bash
#App\Controller\Admin\DashboardController
...
use EasyAdminFriends\EasyAdminDashboardBundle\Controller\DefaultController as EasyAdminDashboard;
class DashboardController extends AbstractDashboardController
{
private $easyAdminDashboard;
public function __construct(EasyAdminDashboard $easyAdminDashboard)
{
$this->easyAdminDashboard = $easyAdminDashboard;
}
public function index(): Response
{
return $this->render('@EasyAdminDashboard/Default/index.html.twig', array(
'dashboard' => $this->easyAdminDashboard->generateDashboardValues(),
'layout_template_path' => $this->easyAdminDashboard->getLayoutTemplate()
));
}
public function configureCrud(): Crud
{
...
}
...