597 search results
Learn Symfony
EasyAdmin! For an Awesomely Powerful Admin Area
…problem. Though, at the very least, a user wouldn't be able to guess the URL, because EasyAdmin generates a signature. That's this signature=" part. What that does is prevent anyone from messing with a URL and trying to access something else. For example…
Symfony Conference Presentations
Symfony Live Paris 2019 (French)
…etc. La configuration des classes Admin est assez exhaustive, mais permet de faire beaucoup de personnalisation EasyAdmin La config est en Yaml, pas de classes Admin Autocomplete pour les relations et les ChoiceType Chaque entité peut avoir son propre contrôleur Timecode: 33:03 symfony est…
Learn Symfony 3
EasyAdminBundle v1 for an Amazing Admin Interface
…an error! That was not the dramatic success moment I was hoping for. But... look! It did redirect to /easyadmin/dashboard! The error is just a Ryan mistake: I forgot a use statement for my Genus class. Add that on top: Try it again! Hello…
…this thing installed. Copy the composer require line, go back to your terminal, open a new tab, and paste: composer require javiereguiluz/easyadmin-bundle While Jordi is downloading that package, let's keep busy! Copy the new bundle line, find app/AppKernel.php, and put…
…or _genus_genusScientists_widget. The last block would only affect this one field. Copy that name. Then, in app/Resources/views/easy_admin, create a new file called _form_theme.html.twig. Add the block: _genus_genusScientists_widget with its endblock: Are you feeling powerful…
…and name="genus_feed to match what we put in the config: Notice the URL for this is just /genus/feed. It does not start with /easyadmin. And so, it's not protected by our access_control security. That should be enough to get started…
…that... we're going to do something completely different. Instead of having one controller - AdminController - full of entity-specific hook methods like preUpdateUserEntity or createGenusEditForm - I prefer to create a custom controller class for each entity. Try this: in the EasyAdmin directory, copy AdminController and…
…inside, a link with btn btn-primary and an href. How can we point to the exportAction()? Remember, the bundle only has one route: easyadmin. For the parameters, use a special variable called _request_parameters. This is something that EasyAdminBundle gives us, and it contains…
…load... which will really slow - or even break - your page. Let's use the autocomplete field instead. Expand the subFamily configuration and set type: easyadmin_autocomplete: That is all we need: it will look at the subFamily field and know which entity to query. So...…
…need to set a few attributes. The first is row_attr: the attributes that you want to add to the form "row". This is not an Easy Admin thing... it's a normal option inside Symfony's form system. Add a data-controller attribute set…
…but you get the idea. Hit save and... nice! Next, let's dig into the powerful Field Configurators system where you can modify something about every field in the system from one place. It's also key to understanding how the core of EasyAdmin works.
Learn Symfony 5
Netgen Layouts: Building Pages with Symfony
…the layout to get back to the main page. If you go to /admin, you'll find that our app already has EasyAdmin installed. Let's add a link from the menu here to Layouts to make life easier. Open src/Controller/Admin/DashboardController.php..…
…yea! That looks better. Next: I want to talk about using a what-you-see-is-what-you-get editor. There's actually a simple one built into Easy Admin. But we're going to go further and install our own. Doing that will require…
Time to build an admin interface for your amazing site! You want it to be great! Powerful! Beautiful! Awe-inspiring! ... and you need to be able to finish it in a just a few hours! Lucky you. EasyAdminBundle allows you to spin up fully-featured…
Creating a Custom Field
The Field Configurator System
Whoops, an error! Please, try again later.