Now you need to start connecting to the DB. In the past (prior to frameworks), you would connect to the DB directly with PHP's functionality to connect to several DB engines (MySQL, Postgres, etc.). Now you will be doing so by using an ORM (object-relational mapper) to make the connection and execution of DB commands easier and reusable. In this video, you will be learning how to integrate Doctrine, one of the most powerful ORMs made with PHP and how it can make life so much easier.
- [Instructor] One of the most robust,…key points of Symfony is its database handler.…While it may seem complicated at first,…in the long run,…Symfony allows us to use a variety of libraries…to connect to a database.…But its readiness to use Doctrine…is simply too appealing.…So let's define Doctrine.…The Doctrine project is, and I quote,…"A group of PHP libraries,…primarily focused on database storage…and object mapping."…So basically, we use Doctrine…to make database interaction easier…than writing SQL queries…on the database directly.…
In the context of Symfony,…Doctrine allows us to abstract the database…into classes and objects,…to facilitate frequent operations,…such as, selecting a single record…of dating, deleting and creating new records.…We've mentioned that Doctrine is an ORM.…But what exactly is an ORM?…An ORM in as object-relational mapper,…which just by the name tells us a lot of what it is.…It takes, for example,…a database element, let's say a table,…and maps its columns into either an object…or an array,…
- Installing Symfony
- Setting up the local environment
- Exploring the Symfony file structure
- Creating routes
- Sending parameters to a controller
- Using views
- Updating routes
- Creating templates with Twig
- Data modeling with Symfony
- Demo application deployment
Skill Level Intermediate
PHP: Clean URLs on Apache Serverwith David Powers1h 35m Intermediate
PHP: Managing Persistent Sessionswith David Powers2h 41m Intermediate
1. Get Started with Symfony
Install Symfony1m 33s
2. Controllers in Symfony
3. Views in Symfony
4. Data Modeling with Symfony
5. Taking Symfony Further
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.