Chapters
40 Chapters
|
4:19:16
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!
Subscribe to download the code!
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
09.
Deep Field Configuration
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
This tutorial is built on Symfony 6 but works great on Symfony 7!
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=8.2.0",
"ext-ctype": "*",
"ext-iconv": "*",
"composer/package-versions-deprecated": "^1.11", // 1.11.99.4
"doctrine/doctrine-bundle": "^2.1", // 2.5.5
"doctrine/doctrine-migrations-bundle": "^3.0", // 3.2.1
"doctrine/orm": "^2.7", // 2.10.4
"easycorp/easyadmin-bundle": "^4.0", // v4.0.2
"handcraftedinthealps/goodby-csv": "^1.4", // 1.4.0
"knplabs/knp-markdown-bundle": "dev-symfony6", // dev-symfony6
"knplabs/knp-time-bundle": "^1.11", // 1.17.0
"sensio/framework-extra-bundle": "^6.0", // v6.2.5
"stof/doctrine-extensions-bundle": "^1.4", // v1.7.0
"symfony/asset": "6.0.*", // v6.0.1
"symfony/console": "6.0.*", // v6.0.2
"symfony/dotenv": "6.0.*", // v6.0.2
"symfony/flex": "^2.0.0", // v2.4.5
"symfony/framework-bundle": "6.0.*", // v6.0.2
"symfony/mime": "6.0.*", // v6.0.2
"symfony/monolog-bundle": "^3.0", // v3.7.1
"symfony/runtime": "6.0.*", // v6.0.0
"symfony/security-bundle": "6.0.*", // v6.0.2
"symfony/stopwatch": "6.0.*", // v6.0.0
"symfony/twig-bundle": "6.0.*", // v6.0.1
"symfony/ux-chartjs": "^2.0", // v2.0.1
"symfony/webpack-encore-bundle": "^1.7", // v1.13.2
"symfony/yaml": "6.0.*", // v6.0.2
"twig/extra-bundle": "^2.12|^3.0", // v3.3.7
"twig/twig": "^2.12|^3.0" // v3.3.7
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.3", // 3.4.1
"symfony/debug-bundle": "6.0.*", // v6.0.2
"symfony/maker-bundle": "^1.15", // v1.36.4
"symfony/var-dumper": "6.0.*", // v6.0.2
"symfony/web-profiler-bundle": "6.0.*", // v6.0.2
"zenstruck/foundry": "^1.1" // v1.16.0
}
}
12 Comments
Hi, I need help please,
In the index page on each row , I just want to add a condition in a field: For example If you're my friend I see your birthday, else "birthday is not available".
In reality, it's an asociationfield and I'm trying to use a voter to testing if the value field, can be displayed.or not.
I can imagine it's easy... but not for me.
Hey @Delenclos-A
I think you can use the
formatValue()method of the association field. It accepts a callback function where you can add your rendering logicCheers!
Thank you so much, It's work fine. For me it was difficult to get the current entity. In chapter 13 I found how.
Oh, sorry, I forgot to point you to the docs but it's great that you find it by yourself
Cheers!
A full example where you need a custom Configurator and Form Type could be useful.
For example how to make a phone number field that exists of 2 components:
1 the country code selector (kinda like Country field)
2 the phone number.
I feel like the docs and these tutorials don't go deep enough for these custom fields.
Hey Rudi,
Yes, we do not cover something like this in this tutorial, but mostly because it is almost not related to EA :) You just need to add a select field to your form that will render the list of countries with their phone codes. And another text input field where you will write the actually phone number, that's it. You will just need to make it prettier, probably place the fields a bit better of you want it inline. But that can be achieve with CSS and templates overriding - we're talking about it in this course. So mostly this is a specific routing task.
Cheers!
I have ORM Column which is type JSON. But I'd like to use some widget to do JSON Editing.. maybe (ckEditor with json). Any guide or tips her.
Thanks
Could we see a comparison (or even a tutorial on) ApiPlatform's react admin?
https://api-platform.com/do...
I imagine it would be performant and may have auto config using it's annotations.
A comparison with LowCode apps that are used to build SQL admin interfaces would be another useful approoach as these are more generalized toolsets and not specific to PHP or symfony (can be used on any type of project and may allow for things like webhooks for additional customization on save / edit / delete).
Hey Fox C.!
> Could we see a comparison (or even a tutorial on) ApiPlatform's react admin?
I've wanted to see about getting a tutorial about this for awhile, but I haven't had time yet. It's still on the list, but will be awhile. Without knowing enough about ApiPlatform's react admin interface, my uneducated guess would be that:
A) If you're building a "traditional" app that returns HTML pages, use EasyAdmin
B) If you're building an API, then use ApiPlatform's react admin.
So the correct admin choice sort of "follows" the type of app you've built in the first place :).
> A comparison with LowCode apps that are used to build SQL admin interfaces would be another useful approoach as these are more generalized toolsets and not specific to PHP or symfony (can be used on any type of project and may allow for things like webhooks for additional customization on save / edit / delete).
Did you have a specific LowCode tool in mind? Are you thinking about one that connects directly to your database? I don't have any experience, but in general, this seems like a worthwhile "direction" in the future.
Cheers!
WTF!?! Ryan's Dead?! damn... condolences to the you and yours... </3
Hi Ryan,
Hope you're well.
Could we PLEASEEEEE have a react admin tutorial to stay relevant.
EasyAdmin is so clunky and annoying to use with it's Controller Configuration.
Don't understand why Symfony who has prided itself in modularity and simplicity has ingrained EasyAdmin so much.
I'm very to churning away from SF tbh. Because of this commitment to the framework, I've ended up just blindly working with EasyAdmin and SF happy talking my way thorugh it. Until we started losing work to react agencies. We're now pivoting, but I'm stating to look at SF sidewards - is it going to be alive much longer?
Is SFcasts still going to be relevant?
Not trolling bro, just frustrated and borderline trying to make myself feel better about my choices to remain with SF.
Anyway, gonna try and figure it out dumping this fking easyadmin with all its happy talking in the deprecation bin.
Regards,
Aries
Hi @Aries,
I totally get EasyAdmin isn't for everyone. Not sure if you use API Platform, but we shortly covered React Admin there (within the context of API Platform).
Kevin
"Houston: no signs of life"
Start the conversation!