Up and Running with Symfony2 for PHP
Video: WelcomeBuild PHP applications the modern way with Symfony2, a popular PHP MVC framework.
- Modeling a magazine
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.
- 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
- 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 .
Here are the FAQs that matched your search "" :
- 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.iniIf 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_AngelesThen restart the server using:sudo service apache2 restartA full list of supported timezones can be found at http://php.net/manual/en/timezones.php.
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.