PHP code example of agence-adeliom / easy-faq-bundle

1. Go to this page and download the library: Download agence-adeliom/easy-faq-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-faq-bundle example snippets




namespace App\Controller\Admin;

...
use App\Entity\EasyFaq\Entry;
use App\Entity\EasyFaq\Category;

class DashboardController extends AbstractDashboardController
{
    ...
    public function configureMenuItems(): iterable
    {
        ...
        yield MenuItem::section('easy.faq.faq'); // (Optional)
        yield MenuItem::linkToCrud('easy.faq.admin.menu.entries', 'fa fa-file-alt', Entry::class);
        yield MenuItem::linkToCrud('easy.faq.admin.menu.categories', 'fa fa-folder', Category::class);

        ...
bash
php bin/console doctrine:migration:diff
php bin/console doctrine:migration:migrate