PHP code example of agence-adeliom / easy-blog-bundle
1. Go to this page and download the library: Download agence-adeliom/easy-blog-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-blog-bundle example snippets
namespace App\Controller\Admin;
...
use App\Entity\EasyBlog\Post;
use App\Entity\EasyBlog\Category;
class DashboardController extends AbstractDashboardController
{
...
public function configureMenuItems(): iterable
{
...
yield MenuItem::section('easy.blog.blog'); // (Optional)
yield MenuItem::linkToCrud('easy.blog.admin.menu.categories', 'fa fa-folder', Category::class);
yield MenuItem::linkToCrud('easy.blog.admin.menu.articles', 'fa fa-file-alt', Post::class);
...
bash
php bin/console doctrine:migration:diff
php bin/console doctrine:migration:migrate