Join Jon Peck for an in-depth discussion in this video What you should know, part of Learning Symfony2 for PHP.
- This course was designed with the assumption that you have a working knowledge of the PHP language and have written a few scripts. Without this background, you might not have enough context to follow along with what I'm going to be doing, which will make it harder to enjoy and learn. For some background or refresher, I recommend PHP with MySQL Essential Training with Kevin Skoglund, here in the Lynda.com online training library. Additionally, the use of object-oriented PHP is required for this course. If you're not familiar with it, check out Object-Oriented Programming with PHP, here in the Lynda.com online training library.
It'll include examples and explanations that should make Symfony easier to understand. If you're unfamiliar or uncomfortable with configuring web server components, check out the course, Installing Apache, MySQL, and PHP with David Gassner, for comprehensive instructions on how to manage the solution stack. If you're interested in MVC frameworks in general, take a look at MVC Frameworks for Building PHP Web Applications with Drew Falkman. It covers a number of key structures and techniques and goes into a brief survey of many different frameworks, including Symfony, which is the sole subject of this course.
Finally, it's good to know where to find the manual. Symfony has extensive free documentation at symfony.com/doc. I recommend bookmarking this page for reference as the course progresses. Their documentation has a number of features, starting with The Book, which is a comprehensive community-maintained guide for developing in Symfony. The Cookbook contains practical examples for solving particular problems. The Reference collects details on configuration, forms, and other related docs.
The extensive and searchable Symfony API documents the internal structure of the framework. Finally, if you'd like a guide to any of the terms used within Symfony, the glossary will clearly define the key concepts in the framework. A hallmark of any good software project is the documentation, and Symfony is a stellar example of good documentation.
- 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
Skill Level Intermediate
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.