Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Up and Running with Symfony2 for PHP

with Jon Peck

Video: Welcome

Build PHP applications the modern way with Symfony2, a popular PHP MVC framework.
please wait ...
Up and Running with Symfony2 for PHP
Video Duration: 0s 2h 4m Intermediate


View Course Description

Build PHP applications the modern way with Symfony2, a popular PHP MVC framework. In this course, Jon Peck shows you how to install and configure Symfony and start saving time with typical development tasks, such as directing traffic, creating persistent models, and rendering content with templates. He'll also show you how to define and validate forms and debug your applications. Don't reinvent the wheel; start learning how to use Symfony to get a head start on your PHP projects.

Topics include:
  • Installing Symfony
  • Creating a bundle from the console
  • Customizing and generating database tables
  • Generating controllers
  • Creating, editing, and debugging entities
  • Displaying and debugging a form
  • Rendering content with templates
PHP Symfony


- Hi, I'm Jon Peck and welcome to Up and Running with Symfony2. In this course we'll look at Symfony an open source PHP framework for web development. I'll start by describing what Symfony is and why it's useful, then demonstrate how to install and configure the framework. We'll direct traffic through the application, create models that persist in the database, render content with templates, and explore how to create and validate forms. Finally, we'll discover ways to debug the application and work with the console tools. Throughout the course we'll create a magazine catalog web application for managing a collection of back issues.

We'll cover all these features plus plenty of other tools and techniques that a modern developer can use to quickly build PHP applications without having to constantly reinvent the wheel. Now, let's get up and running with Symfony2.

Find answers to the most frequently asked questions about Up and Running with Symfony2 for PHP .

Expand all | Collapse all
please wait ...
Q: When trying to access the application, I receive an error stating "This script is only accessible from localhost." How can I get around this restriction?
A: The development front controller and configuration scripts are protected by default to only allow access from the localhost. Refer to the video titled “Exploring the Symfony layout” to see how to disable this security.
Q: I specified the wrong database credentials and got an "Access denied for user" error from doctrine. How can I fix the database configuration?
A: The most likely cause is a typo or misconfiguration in the Symfony parameters file, which you can find at ./symfony/app/config/parameters.yml. This file is typically generated during installation using an interactive wizard.
Symfony requires read and write access to a MySQL database, and needs to know how to connect to the database. Therefore, you'll need to specify a username, password, port (if nonstandard), host, and database name. The credentials to your individual development environment are likely different than the ones used in the course; please use your best judgment in determining the correct values. After making a change, verify the configuration by using a web browser to navigate to /symfony/web/config.php, then click “Configure your Symfony Application online” at the bottom of the page.
Q: How can I configure PHP's time zone?
A: You'll need to edit PHP's configuration to specify a time zone. The Up and Running with Linux for PHP Developers PHP configuration can be modified by editing the custom configuration:
sudoedit /etc/php5/mods-available/custom.ini
If you have a different development environment, determine the location of your php.ini configuration file.  Specify a date.timezone, such as:
date.timezone = America/Los_Angeles
Then restart the server using:
sudo service apache2 restart
A full list of supported timezones can be found at





Don't show this message again
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.

Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

* Estimated file size

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.

Mark all as unwatched Cancel


You have completed Up and Running with Symfony2 for PHP.

Return to your organization's learning portal to continue training, or close this page.


Upgrade to View Courses Offline


With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

Become a Member and Create Custom Playlists

Join today and get unlimited access to the entire library of online learning video courses—and create as many playlists as you like.

Get started

Already a member?

Log in

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

You started this assessment previously and didn’t complete it.

You can pick up where you left off, or start over.

Resume Start over

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.