Category : easyadmin

please I will really appreciate some help here. I am a very new programmer! Can someone kindly share any useful link to a very detailed documentation for easyadmin3 (Symfony4) with an image uploader like vich? Somehing different from this (https://symfony.com/doc/2.x/bundles/EasyAdminBundle/integration/vichuploaderbundle.html). 2)I am using easyadmin3 (symfony4) with vichuploader and when I used ImageField::new(‘image’) it throws an ..

Read more

Excuse me for my English. In a form I use the ImageField (esasyadmin 3) like this : $img = ImageField::new(‘img’) ->setBasePath(‘images) ->setUploadDir(‘public/images) ->setUploadedFileNamePattern(‘[name].[extension]’) ->setRequired(false) ; The goal is to choose an image from the “public/images” folder. However, if I decide to change this image, it removes the image I had previously selected from the folder. ..

Read more

Background I want to display entity-independent information in the EDIT-page. According to the official documentation it can be solved with configureResponseParameters-function. Problem So I implemented that function into my CRUD-controller, but I am not not able to use/find that variable it in my twig template. Any idea? Thanks! My Files PersonCrudController.php class PersonCrudController extends AbstractCrudController ..

Read more

When I log on to easyadmin everything seems normal like this. example But once I refresh the page everything looks likes it’s on the opposite direction it is supposed to be like this. example The code I have is as follows: <?php namespace AppControllerAdmin; use AppEntityPost; use EasyCorpBundleEasyAdminBundleConfigDashboard; use EasyCorpBundleEasyAdminBundleConfigMenuItem; use EasyCorpBundleEasyAdminBundleControllerAbstractDashboardController; use SymfonyComponentHttpFoundationResponse; use ..

Read more

When I log on to easyadmin everything seems normal like this. example But once I refresh the page everything looks likes it’s on the opposite direction it is supposed to be like this. example The code I have is as follows: <?php namespace AppControllerAdmin; use AppEntityPost; use EasyCorpBundleEasyAdminBundleConfigDashboard; use EasyCorpBundleEasyAdminBundleConfigMenuItem; use EasyCorpBundleEasyAdminBundleControllerAbstractDashboardController; use SymfonyComponentHttpFoundationResponse; use ..

Read more

It is said: Technically, these CRUD controllers are regular Symfony controllers so you can do anything you usually do in a controller, such as injecting services and using shortcuts like $this->render() or $this->isGranted(). So I tried this to adapt my EDIT-page: class CourseCrudController extends AbstractCrudController { private $personRepository; public function __construct(PersonRepository $personRepository) { dump("Can you ..

Read more

I’ve been trying to use VichUploader to upload files on a symfony project, already using easyadmin 3. I’ve configured everything correctly, but I’m getting this error: "The "pieceJointeFile" image field must define the directory where the images are uploaded using the setUploadDir() method." <?php namespace AppEntity; use AppRepositoryInventaireRepository; use DateTime; use DoctrineORMMapping as ORM; use ..

Read more