Symfony 6 for Beginners | Learn Symfony 6 | Symfony Full Course | Symfony for Beginners

  Переглядів 120,749

Code With Dary

Code With Dary

День тому

This video will show you all beginners topics you need to know to become a Symfony developer - Want to learn an incredible open-source PHP framework? Symfony is one of the most popular frameworks when you need to build high-performance & complex web applications.
📚 New Udemy Course
If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/course/masterin...
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/codewithdary
💌 Newsletter
Sign up for my free weekly email newsletter: www.newsletter.codewithdary.com
🔥 Resources
- PHP Hosting (10% DISCOUNT): www.hostinger.com/codewithdary
- TikTok: / codewithdary
- Instagram: / codewithdary
- Twitter: / codewithdary
- Blog: blog.codewithdary.com/
- Newsletter: newsletter.codewithdary.com/
- Patreon: www.patreon.com/user?u=30307830
- GitHub: github.com/codewithdary/symfo...
🔗 Useful links
- Symfony Forms: symfony.com/doc/current/forms...
- GitHub Repo: github.com/codewithdary/symfo...
Want to learn more?
- Courses: / @codewithdary
🔗 Useful links
- 1. Tailwind Course: • Complete Tailwind CSS ...
- 1. Coding Standards: symfony.com/doc/current/contr...,
- 3. Homebrew: brew.sh/
- 3. Composer: getcomposer.org/
- 4. VS Code: code.visualstudio.com/
- 10. Database Client: marketplace.visualstudio.com/...
- 13. Batman: cdn.pixabay.com/photo/2021/06...
- 13. Avengers: pixabay.com/illustrations/cap...
- 14. Symfony Encore: github.com/symfony/webpack-en...
- 19. Symfony Forms: symfony.com/doc/current/forms...
- 19. GitHub Repo: github.com/codewithdary/symfo...
📋 Table of Content
00:00 - Introduction to Symfony
10:33 - MVC Explained
13:10 - Installation & Setup for Mac
21:37 - Setting up VS Code for Symfony
31:42 - Setting up our project & directory explained
41:00 - Controllers & Routes in Symfony
51:41 - Route Parameters in Symfony
57:13 - Views in Symfony
01:05:54 - Twig layout, blocks & global variables
01:15:23 - How to create a database
01:21:19 - Doctrine, Entities & Migrations
01:39:12 - Doctrine Relationships Explained
01:43:33 - Data Fixtures
01:58:09 - Entity Repositories
02:14:07 - How to compile assets
02:27:38 - How to use TaliwindCSS
02:39:28 - How to use images
02:46:09 - How to read blog items
03:03:35 - How to update blog items
03:30:53 - How to dit blog items
03:45:38 - How to delete blog items
03:49:20 - Model validation
03:55:56 - Login & Register system
04:11:02 - How to hide pages for unauthorized users
#symfony #framework #symfony6 #php

КОМЕНТАРІ: 245
@JanJanuszNosacz
@JanJanuszNosacz 2 роки тому
1:31:25 when I press Ctrl+C, Entities Movie and Actor aren't updated. You have to press Enter instead. I don't know if that's only my case, but if someone has similar problem, just press Enter instead of Ctrl+C.
@codewithdary
@codewithdary 2 роки тому
Thank you for sharing Jan!
@bigboyivan
@bigboyivan Рік тому
Thank you! You are not the only one, I was stuck on this for an hour!
@mohammadelnayef
@mohammadelnayef Рік тому
Had the same problem, thanks for the fix.
@kaszasandor929
@kaszasandor929 Рік тому
thank you
@judegang1513
@judegang1513 Рік тому
You saved my life man! thanks
@QWebDeveloper
@QWebDeveloper 6 місяців тому
You literally just saved my new job by this free course. I refer to this one again and again. Thank you so much
@codewithdary
@codewithdary 6 місяців тому
Great to hear!! :)
@jmricker74
@jmricker74 Рік тому
This has been great! Thank you! I hope you have plans for more. I tried Laravel but I had a hard time getting it to work in docker. I discovered Symfony and it does everything I want. This tutorial was great as it covered a lot of material in a fairly short amount of time. Would definitely like to see more.
@lukahkamande6826
@lukahkamande6826 Рік тому
True, Laravel is very unfriendly with docker
@matad2k
@matad2k 2 роки тому
Really great explanation and tempo. Man i feel like in 2000 when you could find great things on Internet
@codewithdary
@codewithdary 2 роки тому
Haha that's a dope compliment, thank you!
@emotional_stuff
@emotional_stuff Рік тому
The begining is awesome. Clear and easy, no stones underwater waiting for me during the course. Liked it!
@codewithdary
@codewithdary Рік тому
Appreciate it!!
@samuelaniogbu5089
@samuelaniogbu5089 5 місяців тому
Hi Gary, this is the most comprehensive symfony course on UKposts. Perfectly designed! Perfectly structured!! Perfectly taught!!! Kudos to you man!... You explained doctrine better than it's documentation.
@codewithdary
@codewithdary 5 місяців тому
Thank you so much
@Velgan83
@Velgan83 2 роки тому
Exactly what I needed after trying out laravel 9 and being kinda lost on how to add input value to database table and display it properly. I'm gonna dig in your course after tomorrow, thanks a lot for all the efforts you put in.
@codewithdary
@codewithdary 2 роки тому
Thank you so much & goodluck!
@MrPatishpanj
@MrPatishpanj 2 місяці тому
How did you get lost? What laravel has to do with that?
@yipperdeyip
@yipperdeyip Рік тому
I was planning to use to use this as a base for some school projects and I did. Best decision I made. Passed with flying colours thanks to you! Thank you so much! ❤️
@codewithdary
@codewithdary Рік тому
Wow, that's incredible. Thank you for watching! :)
@annasargsyan4430
@annasargsyan4430 Рік тому
Thank you very much! I haven’t worked on frameworks before, but decided to learn. It’s unusal for me working in terminal and I don’t understand some commands, but with practice I hope I would understand. Thank you again for this helping and absolutely free tutorial. Wish you a good luck and lots of success in future ✊🏻🔥
@codewithdary
@codewithdary Рік тому
Thank you for being so kind Anna. Interested in learning another framework? I have tons of Laravel tutorials which might help you out :)
@rarespetrusamartean5433
@rarespetrusamartean5433 Рік тому
Laravel really is used a lot so his recommendation is pretty good to be honest
@adev_312
@adev_312 Рік тому
I'm moving from Laravel to Symfony and this was a huge help to get me going! Thanks.
@codewithdary
@codewithdary Рік тому
Love to hear that! :) Thank you
@AndreGomes
@AndreGomes Рік тому
Ty so much Dary, u help a older programmer from brazil to introduce symfony, i watch your course for 8 or 9 hours, slow and making a full setup with VSCode intead phpstorm that i use before, docker with mysql configurations and deploy on heroku. I printed full pdf from symfony book, and now i will reading today drink wine in a ranny day.. Ty again, best regards.
@codewithdary
@codewithdary Рік тому
Thank you so much Andre, tried my best and I'm glad it helped you. It takes time, but you will get there!
@tricioandrade
@tricioandrade 2 роки тому
Mr. Dary I am very happy to have discovered your channel, I am finishing your Laravel 8 course, soon I will start the Laravel 9 course, made by you. I really like your way of teaching. Just now I discovered your Symphony course 🙆🏾‍♂️ ❤️. Thank you so much for taking the time to create these courses, God bless you 😊.
@codewithdary
@codewithdary 2 роки тому
Hi Patricio, thank you for your lovely words. I'm currently working on a Laravel 9 course (as you could see by my latest videos)!
@jnnikolova
@jnnikolova Рік тому
Thank you very much for this video. There are a lot of tutorials which are hard to follow, but I've just started your and it's really well paced and explained.
@codewithdary
@codewithdary Рік тому
Thank you for your kind words :)
@bluehead_info
@bluehead_info 6 місяців тому
Your "All right" is somehow soothing. :)
@codewithdary
@codewithdary 6 місяців тому
Haha thank you!! 😂👌
@LOLgarena
@LOLgarena Рік тому
Thank you, this is my first time on any framework. The level of detail and explanation is top notch better than other youtube course. If you got any paid courses for symfony sign me up. More symfony content thank you.
@codewithdary
@codewithdary Рік тому
Thank you so much, definitely motivates me to make more Symfony content :)
@esirodavies8558
@esirodavies8558 Рік тому
Simple and straight to point, I love it
@codewithdary
@codewithdary Рік тому
Thank you Esiro!
@dusangrozdic2502
@dusangrozdic2502 Рік тому
Hello Dary, this is by far one of most interesting courses i'v found, and i learned a lot from it! Thank you very much for for your time and effort to make it so dynamic. Unfortunatly symfony is evolving fast, and some features and packages are outdated or not needed now, so we have to adapt :) i hope you will make more videos of symfony, i would be happy to watch and learn from them! thumbs up 👍 hat down 🎩 im very gratefull
@codewithdary
@codewithdary Рік тому
Glad it was helpful, and thank you for all the kind words Dusan!!
@nielsmeereboer9283
@nielsmeereboer9283 Рік тому
Great introductionary course. Very well done! Helps me a lot in preparing for my new job where I will be using this framework a lot, even though I am completely new in this line of work. Do you have any recommendations for digging into some more 'advanced symfony' topics?
@codewithdary
@codewithdary Рік тому
Tbh I have no idea. Haven't really seen a lot of content on YT regarding Symfony :(
@liljefelt
@liljefelt Рік тому
Great course! Thank you for creating it Dary. Small detail; the term pivot table is misused when explaining sql relationships. What you are describing are junction tables.
@codewithdary
@codewithdary Рік тому
Hmm, thank you for sharing that with me Andreas, i'll look into it, sounds pretty interesting!
@urbanlydeclicious
@urbanlydeclicious 2 роки тому
This was great and easy to follow. I'm going to check out your Laravel one next. One thing I would have liked to see here is working with the actors, ie adding actors and assigning them to movies.
@codewithdary
@codewithdary 2 роки тому
Should've added that, but Laravel 9 came out so I couldn't work more weeks on the course :(
@luqmanafridi333
@luqmanafridi333 Рік тому
appreciated ! your hard work, really amazing
@codewithdary
@codewithdary Рік тому
Thank you Luqman.
@ETERNAL_VOID
@ETERNAL_VOID Рік тому
Great video, went from knowing nothing about symfony to loads! One question: is it possible to generate an entity for a already existing database table in symfony 6?
@JanJanuszNosacz
@JanJanuszNosacz 10 місяців тому
3:05:19 Perhaps it would be better to use route instead of fixed link in "href". If you change the route in future, you would have to remember to also change it in this twig file. But if you use Create new movie instead, it will automatically change every time you change the route.
@karimjedda
@karimjedda 2 роки тому
Fantastic tutorial! Symfony feels so similar to Django it’s surprising. Learned a lot. Thanks
@codewithdary
@codewithdary 2 роки тому
Great to hear Karim! :)
@meri1221
@meri1221 Рік тому
You are brilliant! Thank you for this amazing tutorial : )
@codewithdary
@codewithdary Рік тому
I should be thanking you for watching :)
@ignaciodamiang
@ignaciodamiang 2 роки тому
This is huge. Thank you very much!
@codewithdary
@codewithdary 2 роки тому
You're welcome!
@Sasfatu
@Sasfatu 2 роки тому
Hi, thank you for this brilliant tutorial on symfony. I really enjoyed watching it. One thing I was missing though was an info about the plugin to pimp up your VS Code Terminal. Can you please give me a hint for which plugin I need to search in order to have that nice looking Terminal? Thanks and Cheers Oliver
@codewithdary
@codewithdary 2 роки тому
Because a nicer terminal doesn't affect your Symfony code, so it's not related to the actual content of the video. If you are interested, I've got a separate video on how you could do that: ukposts.info/have/v-deo/mnuGgn6HrZ6kp2Q.html
@vladapetkovic6393
@vladapetkovic6393 2 роки тому
Thanks Dary ... The tutorial is very useful and well done. How we can implement data pagination in symphony 6. Is there any bundle for pagination in symfony 6 who does the right thing and has no mistakes in himself?
@alephlau1483
@alephlau1483 Рік тому
You're awesome, thank u so much for your work.
@codewithdary
@codewithdary Рік тому
Means the world to me, thank you so much :)
@muzafferkarakan
@muzafferkarakan 2 роки тому
Thanks KING!!! 👑
@codewithdary
@codewithdary 2 роки тому
Thank you my man!!
@orkhanfarmanli
@orkhanfarmanli Рік тому
You just needed to execute "composer require symfony/maker-bundle --dev" to fix the "make" command. No need for workarounds as this is the official way of setting it up. It's also mentioned in the warning message in the console when you tried executing "make" command without having this bundle.
@thewilliamndubuisi
@thewilliamndubuisi 6 місяців тому
Best tutorial video I’ve seen on UKposts
@codewithdary
@codewithdary 6 місяців тому
You just made my day, Willam! Thank you!
@Ksedoxxx
@Ksedoxxx Рік тому
Great course! I did whole application with you. Nice quality, nice voice, good explained - what more could you want?
@codewithdary
@codewithdary Рік тому
Thank you so much Bartosz! You tell me what you need ;)
@mohammedmarsou
@mohammedmarsou Рік тому
Great course, actually one of the best I watched thank you
@codewithdary
@codewithdary Рік тому
That's the best compliment I could get, thank you so much Mohammed!
@zeroualiibtissam4703
@zeroualiibtissam4703 Рік тому
thanks a lot, you saved my life ,and you're method is just amazing. Could you please do video with more advanced features
@codewithdary
@codewithdary Рік тому
Definitely will do in the future! :)
@dangtantai1332
@dangtantai1332 2 роки тому
Thank you, dude.
@codewithdary
@codewithdary 2 роки тому
No problem!
@uraljonjurayev1814
@uraljonjurayev1814 2 роки тому
Thank you very well.
@codewithdary
@codewithdary 2 роки тому
Thank you too for the support Uraljon!
@yup9451
@yup9451 2 роки тому
Holy shit. This guide has it all. This is gonna be useful for my school project thanks!
@codewithdary
@codewithdary 2 роки тому
Thank you so much man :)
@Mastermism
@Mastermism Рік тому
Excellent and coherent tutorial!
@codewithdary
@codewithdary Рік тому
Many thanks buddy!!
@najimelguennouni873
@najimelguennouni873 2 роки тому
Thank you * so much bro
@codewithdary
@codewithdary 2 роки тому
No problem Najim, thank you!!
@AnonymousDeveloper1
@AnonymousDeveloper1 2 роки тому
Looks like I have to watch this course. It seems to be there are not so many courses for Symfony. I hope your will be great.
@codewithdary
@codewithdary 2 роки тому
I hope you will enjoy it, share your experience afterwards!
@tomasduchon1691
@tomasduchon1691 Рік тому
Awesome guy ! Thanks
@codewithdary
@codewithdary Рік тому
Happy to help Tomas! :)
@siddhantpethe
@siddhantpethe Рік тому
A very nice explanation. Thanks 🙏 .
@codewithdary
@codewithdary Рік тому
So nice of you Siddhant!
@VipapkStudiosOfficial
@VipapkStudiosOfficial 2 роки тому
I've been watching all the tutorials from you on Symfony 6 so far, seeing them all in 1 video is gratifying, cheers! Are you planning on making an SEO tutorial for Symfony 6 by any chance? :3
@codewithdary
@codewithdary 2 роки тому
Nice nice! :) Most likely not, I'm sorry.
@VipapkStudiosOfficial
@VipapkStudiosOfficial 2 роки тому
@@codewithdary Oh, that's okay! I found a working bundle, called SonataSeoBundle, so no worries! :) Btw, having that database INSIDE VSCode is just GENIUS! I was seriously screaming of joy because it's so much easier LOL!
@luciavanhallen939
@luciavanhallen939 Рік тому
i dont know what could understand a person that has never seen Symfony in his live from this video.... i already worked in symfony and i find everything very rapid and fast explained... a newbie would really struggle to understand how works for example the scope of names between model, view, and controller... and i think that's is the most difficult part to achieve confidence with all this framework that controls everything
@phamtungduong8580
@phamtungduong8580 Рік тому
I would love that you created more deeply on this project
@codewithdary
@codewithdary Рік тому
Will definitely do in the future Pham!
@toprakuzuner3445
@toprakuzuner3445 Рік тому
very clear course, thank you so much
@codewithdary
@codewithdary Рік тому
Thank you Toprak
@taktak7980
@taktak7980 Рік тому
Thank you so much.
@codewithdary
@codewithdary Рік тому
Thank you for watching :)
@mariorobles5202
@mariorobles5202 2 місяці тому
Hello Dary, I would like to ask you something: when you are creating a new blog entry, how can you update the creation date when that operation is done? It is necessary to store that date somewhere?
@Klimes212
@Klimes212 Рік тому
Thank you very much for this super tutorial! I would like to ask you If it is good idea to build JavaScript audio player and visualizer in symfony? Are There better frameworks for this kind of app? Thank you
@codewithdary
@codewithdary Рік тому
You can definitely do that, but I would most likely have a look at what packages are available and choose based on that.
@coursdebatterieerwann3216
@coursdebatterieerwann3216 2 роки тому
Hello, thank you very much for your work and help. I'm having an issue (well, not sure it is a real issue..): In the data fixtures part, I'm getting an error with my text editor (vscode) saying addReference and getReference methods are undefined but it works when I execute "symfony console doctrine:fixtures:load" Do you think it is a problem comming from my IDE ? Anyone got the same "error"? Again, many thanks for your video.
@nadetdevfullstack7041
@nadetdevfullstack7041 Рік тому
Excellent !
@codewithdary
@codewithdary Рік тому
Glad you like it!
@princechisomaga8681
@princechisomaga8681 Рік тому
Nice course, thank you
@codewithdary
@codewithdary Рік тому
You are welcome Chisomaga!
@eczeeofficial
@eczeeofficial Рік тому
awesome, what extension are you using to se your dbs in vs code? I use SqlTools but can't see the tables as you see them. Thx!
@codewithdary
@codewithdary Рік тому
Its called Database Client & I love it!
@NoahNobody
@NoahNobody Рік тому
Thanks for making an updated tutorial. I didn't really understand why you used symfony new appname, then deleted the app and used composer to create a new app.
@codewithdary
@codewithdary Рік тому
Just to show the watchers that there are multiple ways on how you could create a Symfony app, it could throw people off that are new! Anyways, thank you
@rogalthomas
@rogalthomas 7 місяців тому
Great course! Thanks a lot! 🙂
@codewithdary
@codewithdary 7 місяців тому
You're very welcome!
@psy237
@psy237 Рік тому
hands up, who had one to many relationships 🤣😂🤣 Thanks very much for the guidance through symfony, surely seems much faster for the end-visitors than laravel..
@codewithdary
@codewithdary Рік тому
You’re welcome 😊
@Doha-hu9qv
@Doha-hu9qv Рік тому
thank u so much
@codewithdary
@codewithdary Рік тому
You are most welcome :)
@sakibyousuf1869
@sakibyousuf1869 10 місяців тому
Thanks for this content ❤ Can we get the next part of this project
@codewithdary
@codewithdary 10 місяців тому
Thank you! I'm not working on anything Symfony related yet :)
@sakibyousuf1869
@sakibyousuf1869 10 місяців тому
@@codewithdary 😔😔
@zaruuwa
@zaruuwa Рік тому
That tutorial is awesome😋
@codewithdary
@codewithdary Рік тому
Thanks 😁
@valerie8031
@valerie8031 2 роки тому
saved my life fr
@codewithdary
@codewithdary 2 роки тому
Love to hear that Valerie
@murschid
@murschid Місяць тому
Kindly make a tutorial series for Symfony API
@kroonox6848
@kroonox6848 10 місяців тому
At 2:46:20 section "how to read blog items" after creating the twig files in the templates folder I keep getting a RuntimeError Variable "movies" does not exist.
@martinsinansky2817
@martinsinansky2817 2 роки тому
As usual, Dary, nice and clear explanaition for most things, but I am half way through and one thing still makes no sense to me. What logic justifies using an ordering clause in a single row query? Passing a second array to findOneBy() makes absolutelly no sense, if we actually expect to receive 0 or 1 row from the database. For finBy() we expect to return 0-n entries that meet the set conditions, so ordering makes sense. especially if we have a page that displays the results in a datatable that allows ordering on columns.
@elprofesorverdad3444
@elprofesorverdad3444 6 місяців тому
Hola, te escribo en mi idioma, desde Venezuela, acá adolecemos de muchos recursos, expertos internacionales nos comparan con ruinas de guerra, después de los bombarderos, pero la realidad es peor que eso... este curso nos permite aprender técnicas importantes para obtener ingresos a través de Internet, para organizarnos y cambiar nuestra manera de vivir de forma positiva... en otras palabras, estás cambiando el mundo de manera contundente y real. Quizá no lo habías visto de esa manera, pero para nosotros el conocimiento a este nivel es la cura de las enfermedades, la comida sobre la mesa, y el futuro de nuestros hijos. Gracias es poco. un abrazo desde Venezuela, acá cuentas con otra famila.
@codewithdary
@codewithdary 6 місяців тому
Thank you.
@byteboxing
@byteboxing Рік тому
Did I just missed something, or did you mention covering ORM relations but then didn't in the CURD / Forms chapter?
@robertlucic7650
@robertlucic7650 Рік тому
Hi, thanks for the tutorial. I just have one question, what is the purpose of the code in line 87 at 3:44:38? It's actually a string, but it's not used in a function or assigned to a variable...
@codewithdary
@codewithdary Рік тому
Thank you Robert. This code is used in Symfony to get the project directory path. The method getParameter() is called on $this, which typically refers to the current class instance. The parameter name 'kernel.project_dir' is passed as an argument to getParameter(), which returns the corresponding value, in this case the project directory path.
@meirbek241
@meirbek241 5 місяців тому
@@codewithdary there is concatenation with $movie->getImagePath(); but the whole line is not being assigned to any variable. How is this particular line affecting the overall code, could you elaborate please? Maybe I'm missing something? Huge thank for the tutorial though, it was very useful to learn Symfony from your channel!
@emotional_stuff
@emotional_stuff Рік тому
cool cool
@codewithdary
@codewithdary Рік тому
Thank you :)
@stoichooman3045
@stoichooman3045 Рік тому
The new property to actor doesn't update ManyToMany there is also no property added to the actor class that I can access to the related movie objects there was no error and it was success in the terminal but doesn't show updated
@LoganAlexanderJohnen
@LoganAlexanderJohnen 3 дні тому
1:21:00 command symfony console doctrine:database:create just won't work for me. Displays the error: "Could not create database `movies` for connection named default An exception occurred in the driver: could not find driver"
@rarespetrusamartean5433
@rarespetrusamartean5433 Рік тому
hey great tutorial overall but I'm here to mention that the symfony6-static-movies/templates/movies folder contains the finalized files of the course, not the ones you copy pasted in this tutorial, so people have to guess as to what they're supposed to put into those files, because you don't show their contents even on screen at all thank you for the tutorial either way EDIT1: also the edit page contains "Create Movie" EDIT2: one of your last chapters is named "...dit..." instead of "...edit..."
@rarespetrusamartean5433
@rarespetrusamartean5433 Рік тому
I mean the differences are pretty small and irrelevant, but it may confuse some beginners
@codewithdary
@codewithdary Рік тому
Hi Rares, thank you for providing such a detailed feedback, I will look into it! Also, thank you so much
@alexsH9671
@alexsH9671 2 роки тому
Everything worked beautiful, until I "tested" myself the create method, seems like (at least on my device) that if($imagePath) which should tehnically "solve" the problem I guess... it doesn't, it goes through and print's out a full page of error, saying that the imagePath column cannot be null, and I understand that, but what's the purpose of the IF afterall if it still runs to code, to throw the error, shouldn't that be actually solved from front-end or ... idk, another way ?
@JanJanuszNosacz
@JanJanuszNosacz 2 роки тому
1:52:49 When you renamed AppFixtures to ActorFixtures, the line "use App\Entity\Actor;" was not added automatically, which makes this fixture unusable. Later it magically appears in your code in line 5 :) To all those who have problem with this fixture, remember to manually add this line of code.
@ilyesbahfir6602
@ilyesbahfir6602 Рік тому
no it added automatically when he create an actor object.
@JanJanuszNosacz
@JanJanuszNosacz Рік тому
@@ilyesbahfir6602 I guess that depends on your IDE. I use VSC, but if you don't have proper extension, the "use" statement will not be automatically added and fixture won't work.
@jeuskofjzjfh
@jeuskofjzjfh Рік тому
is it useful if im working on asymfony 5.4 project?
@codewithdary
@codewithdary Рік тому
Definitely will be useful. It's not like the entire framework changes when a new version comes up, just minor changes where you might run into.
@glamdemarie
@glamdemarie 7 місяців тому
I have a problem, I do not have doctrine commands and when I try to add it by 'composer require symfony/orm-pack ' I get conflics with my symfony version. How can I resolve this?
@codewithdary
@codewithdary 7 місяців тому
To resolve conflicts when trying to add doctrine commands with "composer require symfony/orm-pack", you can try updating the Symfony version in your project.
@glamdemarie
@glamdemarie 7 місяців тому
@@codewithdary what can I do with this error? Cannot find the entity manager for class "App\Entity\Movie". When I try to update the entity to add a new property I get this error
@kiwi-fella
@kiwi-fella 10 місяців тому
Great course, i really appreciate your time putting this together. A couple small things missed in the video have tripped me up - but exploring code & bug fixing makes us understand the code much better 🙂 However one that stumped me for a while was around time 3:44:09 (Editing Items) if(file_exists( $this->getParameter('kernel.project_dir') . $movie->getImagePath() )){ the above if() statement used in your example will always return false - it's missing the '/public' section of the path... correct code should be... if(file_exists( $this->getParameter('kernel.project_dir') . '/public' . $movie->getImagePath() )){ Only mentioning it as it might help a beginner progress to the end of the course - without it the edit page doesn't work properly.
@bestmusic737
@bestmusic737 7 місяців тому
Thanks a lot! This was exactly what I was missing :)
@xxxPrzybyLxxx
@xxxPrzybyLxxx Рік тому
Each time You are pressing CTRL+C to quit from Maker I am getting triggered. lol. Just use double
@codewithdary
@codewithdary Рік тому
Haha sorry 😂
@younes6713
@younes6713 Рік тому
Hi how did you create pivot table ? was it generated automatically? because it's not working for me. I'm implementing one to many relationship!!
@codewithdary
@codewithdary Рік тому
The pivot table is created automatically by the Doctrine ORM when the schema is updated.
@marcomacaluso7724
@marcomacaluso7724 2 роки тому
I didn't get any of the auto-generated functions in Actor.php whilst following the Doctrine, Entities and Migrations section. Any ideas? Thanks
@codewithdary
@codewithdary 2 роки тому
Hit enter instead of CTRL+C to close off Doctrine, I think!
@dylanours6488
@dylanours6488 Рік тому
Technically your 4th SQL query around 2:12:33 should be something like: SELECT top 1 * FROM movies WHERE id = 6 AND ...
@wc899
@wc899 Рік тому
Hi i want to use symfony as an API and Vuejs for my frontend, how can i go about this?
@codewithdary
@codewithdary Рік тому
Exactly as your saying tbh…
@bejokful
@bejokful 8 місяців тому
An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: "create" CONTEXT: unnamed portal parameter $1 = '...' Hello i got this error, when accessing create movie menu?
@bejokful
@bejokful 8 місяців тому
I use PostgresSQL datababase
@bejokful
@bejokful 8 місяців тому
I found the solution, is it required to put create() function after index() function? Because error occur if i put create() function after show() function.
@codewithdary
@codewithdary 7 місяців тому
I just waiting so you found the solution yourself (just kidding)
@bejokful
@bejokful 8 місяців тому
hello, in my assets folder nothing controllers.json file. how to fix it?
@codewithdary
@codewithdary 8 місяців тому
What is inside of it?
@user-vc8ky2vq2n
@user-vc8ky2vq2n Рік тому
When I do commands in vscode terminal that start with "symfony" I get an error But with composer it works Why i that happening? I'm using windows and I installed with composer I've seen a lot of problems for windows users Could someone guide me to a video with a good installation for windows maybe?
@codewithdary
@codewithdary Рік тому
Have you installed Symfony CLI? symfony.com/download
@matthewtindall112
@matthewtindall112 Рік тому
Although i set the field type to ManyToMany, and then set the class to Actor the pivot table does not automatically get generated. Within the Actor class, i only get the methods that are related to the properties of itself e.g. getId, getName and setName. I don't have the movies variable, or any of the 'movie' related methods (like 'addMovie'). I am wondering if there is an extra package installed that creates the relationship between the Actor and Movie entity that I am missing?
@matthewtindall112
@matthewtindall112 Рік тому
Scratch this, i had exited the maker:entity command too early, another two hours wasted
@codewithdary
@codewithdary Рік тому
Don't worry wasting time on those things, it's part of coding and you will learn from it :D
@matthewtindall112
@matthewtindall112 Рік тому
@@codewithdary Thank you, thanks for the top content too, it's making learning symfony a smoother process than i imagined!
@bluehead_info
@bluehead_info 6 місяців тому
@@matthewtindall112 please elaborate what do you mean exited maker:entity command too early. I got the same problem, but don't understand your explanation. Plz help
@bluehead_info
@bluehead_info 6 місяців тому
@@matthewtindall112 scratch this. Figured it out. hahahaha
@Salamaleikum80
@Salamaleikum80 2 місяці тому
Sadly the twig syntax highlighting isn't working anymore even with your json settings.
@codewithdary
@codewithdary 2 місяці тому
:(
@Grimsby99
@Grimsby99 Рік тому
Great tutorial so far however i am getting "Class 'App\Controller\Movie' does not exist" at 2:03:30.
@Grimsby99
@Grimsby99 Рік тому
I just realised when typing the line em->getRepository(Movie.. i needed to press Enter to select the suggested option of Movie, so it added the use line in of "use App\Entity\Movie".
@codewithdary
@codewithdary Рік тому
Happy that you found the solution yourself :)
@Dommmin
@Dommmin 2 роки тому
Could you tell us how to show actor related to movie in twig template? I mean like {{ movie.name }}, {{ movie.actor.name }}?
@danielbedensky4992
@danielbedensky4992 Рік тому
Hello, can please someone help with doctrine:database:create ?, cause the command still return error :/ "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused"
@codewithdary
@codewithdary Рік тому
Wrong database credentials or wrong URL!
@taskdelta9014
@taskdelta9014 Рік тому
I have this problem! [critical] Error thrown while running command "doctrine:database:create". Message: "An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)" In ExceptionConverter.php line 103: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) In Exception.php line 30: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) In Driver.php line 28: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) please help I'm trying to figure it out but no results
@codewithdary
@codewithdary Рік тому
Your database credentials are not correct.
@filipdjokovic8480
@filipdjokovic8480 Рік тому
At 1:55:50 I am getting a problem with addReference() method, it is undefined method error for some reason, even though everything else is working fine, anybody know a solution? Edit: I Fixed it by simply running the fixtures:load and restarting the project. Guess VS Code just went crazy for some reason. No errors or problems after the restart.
@hatimlograini4339
@hatimlograini4339 2 роки тому
اخوكم من المغرب حياكم الله
@codewithdary
@codewithdary 2 роки тому
Thank you
@herved.2063
@herved.2063 Рік тому
Let's be honest, I had to stop in the middle in order to look for a proper explanation of what Twig is actually useful for. Because from the look of things, it just seems like a useless overlayer in the beginning. I'm looking for a framework, and I end up having to learn a new syntax for simple stuff I already know how to implement... Let's be honest, I didn't expect to have to learn a new syntax when looking for a tutorial about a PHP framework. Actually, twig enforces you to use the MVC pattern. That's good ! Spending time on explaning this in the beginning before delving into too many details would be useful... I think. Insisting on how basic PHP can turn into a nightmare would help. That's actually why I want to use a framework. I guess other people with less PHP experience might have no clue... yet!
@codewithdary
@codewithdary Рік тому
I don't really get your comment, sorry?
@phamtungduong8580
@phamtungduong8580 Рік тому
@@codewithdary I think he meant to learn pure API ? Cuz the look of Twig made this more likely a web application
@codewithdary
@codewithdary Рік тому
@@phamtungduong8580 I haven’t mentioned that we’re going to make an api? So that seems odd
@ernestoavilahernandez8994
@ernestoavilahernandez8994 2 роки тому
All is ok, but: The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue. I hate frameworks.
@ilyasstaybi3583
@ilyasstaybi3583 Рік тому
Great content!, but i have this error every time i try to create the db : In ExceptionConverter.php line 103: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory In Exception.php line 28: SQLSTATE[HY000] [2002] No such file or directory In Driver.php line 28: SQLSTATE[HY000] [2002] No such file or directory how can i resolve this?
@codewithdary
@codewithdary Рік тому
Maybe try to change localhost to 127.0.0.1?
@phamtungduong8580
@phamtungduong8580 Рік тому
maybe i didn't have MySQL? I hope I could help u a little bit
@legonz5047
@legonz5047 Рік тому
did it several times, same as you. But i allways get: The requested URL was not found on this server. error. tryed everything i found on google to solve this, but i feel that everything makes things worse Can anyone help me please?
@codewithdary
@codewithdary Рік тому
I can’t really tell what you did based on your comment, please be specific next time
@legonz5047
@legonz5047 Рік тому
@@codewithdary Happy new Year and Thanks. I have my local machine on Win 10, setup with Xampp. test.local domain is directed to the test.local/public folder. I come to the initial Page of Symfony but whatever route i try, i get a Page not found.
@reklamaSauneo
@reklamaSauneo 8 місяців тому
@@legonz5047 I use WAMP Server and I need to add .htaccess file to the public directory: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?file=$1 [L,QSA]
@karolinamaciejewska5295
@karolinamaciejewska5295 2 роки тому
I have got following error: "PHP Fatal error: Uncaught Error: Class "Symfony\Bundle\FrameworkBundle\Controller\AbstractController" not found in D:\symfony_course\movies3\src\Controller\MoviesController.php:9 Stack trace: #0 {main} thrown in D:\symfony_course\movies3\src\Controller\MoviesController.php on line 9" How to solve this?
@pml.software
@pml.software Рік тому
We can't see how line 9 looks like so it's a little hard to help...
@maelstrom57
@maelstrom57 6 місяців тому
This course is great but man I'm so not using Webpack.
@codewithdary
@codewithdary 6 місяців тому
Thank you :)
@abrahaoeneias357
@abrahaoeneias357 Рік тому
Where to find your presentation?
@codewithdary
@codewithdary Рік тому
Not online unfortunately
@petar932
@petar932 2 роки тому
im still learning laravel tho
@codewithdary
@codewithdary 2 роки тому
Good luck with that :D
Symfony vs Laravel: Head-to-Head Comparison
7:56
Kinsta
Переглядів 7 тис.
Конгрес голосує за допомогу Україні. Спецефір Голосу Америки
5:43:13
Голос Америки Українською
Переглядів 443 тис.
The secret behind FrankenPHP: Will it revolutionize PHP?
12:40
Chris Fidao
Переглядів 34 тис.
I learned to code from scratch in 1 year. Here's how.
41:55
Thomas Frank
Переглядів 286 тис.
Battle: Laravel vs Symfony vs CodeIgniter | You won't believe who wins! | Jelvix
5:11
Jelvix | TECH IN 5 MINUTES
Переглядів 11 тис.
How I Would Learn To Code (If I Could Start Over)
23:50
Jacob Sucks At Code
Переглядів 32 тис.
How I'd Learn Web Development (If I Could Start Over)
6:55
Dylan Cole
Переглядів 384 тис.
🚀 SYMFONY 5 - LE GUIDE COMPLET : NOUVELLE FORMATION !
2:15:16
Lior CHAMLA - Web Develop Me
Переглядів 141 тис.
Du REACT dans une application SYMFONY 🤯
26:11
YoanDev
Переглядів 17 тис.
PHP in 100 Seconds
2:21
Fireship
Переглядів 1,2 млн
Learn To Code Like a GENIUS and Not Waste Time
9:41
The Coding Sloth
Переглядів 941 тис.