PHP code example of agence-adeliom / easy-page-bundle
1. Go to this page and download the library: Download agence-adeliom/easy-page-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/ */
agence-adeliom / easy-page-bundle example snippets
namespace App\Controller\Admin;
...
use App\Entity\EasyPage\Page;
class DashboardController extends AbstractDashboardController
{
...
public function configureMenuItems(): iterable
{
...
yield MenuItem::section('easy.page.admin.menu.contents'); // (Optional)
yield MenuItem::linkToCrud('easy.page.admin.menu.pages', 'fa fa-file-alt', Page::class);
...
{# Page : "Team" #}
{{ path('easy_page_index', {"slugs": page.tree}) }}
{# Will show : /welcome/our-company/team #}