Realdolmen Education


PHP Symfony2 Basic

Deze cursus is momenteel niet ingepland op de open kalender, maar kan op aanvraag georganiseerd worden.

Cursus aanvragen

Aantal dagen

3 day(s)


PHP developers who want to get a first experience with the Symfony2 framework.


Having experience with PHP development.


Learn how to get started with the Symfony2 framework.


Classroom training with hands-on exercises.


Many PHP developers come to the conclusion one day that they need a framework. While it is easy to develop simple PHP applications, it becomes gradually more and more difficult to keep your code organized and maintainable, especially as the application grows in complexity and requirements. There are also lots of concerns that easily get repetitive when developing new applications. If you ever wondered how to make your life as a PHP developer easier, Symfony2 may well be the framework you were looking for!

Symfony2 is based on the best ideas from many technologies, developed over the course of many years. It will help you develop faster and build more robust applications, while staying out of the way. Symfony2 will provide you with the tools to develop your application, so you can concentrate on the content. Symfony2 is also modular: you don't have to use the full framework, you can use just what you need. At the same time, its components will be useful in any PHP project, and can easily be configured or even be replaced.

During this course, you will learn how to use the Symfony2 framework to quickly start new projects. You will learn about its advantages, its architecture, components and configuration. The course will first give an overview of the framework, and help you install and configure. Next, you will learn the basics of the framework: about using controllers, routing, templates and forms. During many instructor-led exercises, you will get a better feel for the framework. You will see how Symfony2 will rescue you from mundane tasks and give you back control over your application. At the end of the course, you will be convinced by the elegance and simplicity of Symfony2!


  • Introduction
    • What is Symfony2
    • Advantages
    • Symfony Components
    • Architecture and Internals Overview
    • Symfony2 vs. Flat PHP
  • Installation and Configuration
    • Installing Symfony2
    • Configuration and Setup
    • Beginning Development
  • Creating Pages
    • Environment and Front Controllers
    • Creating the Bundle
    • Creating the Route
    • Creating the Controller
    • Creating the Template
    • Directory Structure
    • Default Configuration
    • Environment Configuration
  • Controller
    • Request, Controller and Response
    • A Simple Controller
    • Mapping URLs
    • Creating Static Pages
    • The Controller Class
    • Controller Tasks
    • Managing Errors
    • Managing the Session
  • Routing
    • How does it work?
    • Creating Routes
    • Naming Conventions
    • Adding Parameters
    • Debugging Routes
    • Generating URLs
  • Twig Templates
    • Creating and Using Templates
    • Twig Template Caching
    • Template Naming and Location
    • Including CSS and JavaScript
    • Debugging
  • Using PDO
    • Installing and Configuring PDO
    • Drivers
    • Constants
    • Connections
    • Transactions and Autocommit
    • Prepared Statements and Stored Procedures
    • Error Handling
    • Using the PDO Class
    • PDOStatement
  • Forms
    • Creating Simple Forms
    • Form Validation
    • Built-In Field Types
    • Rendering Forms in a Template
    • Creating Form Classes
  • Optimizing your Development Environment for Debugging
  • What's Next?