Get csrf token in form Symfony2

Twig
Use this code to retrieve the csrf token in the Symfony2 form.
3 years ago

slugify in MYSQL

SQL
Stored procedure to create a slug in MySQL
3 years ago

Redirect non-www to www in Apache .htaccess

Apache Configuration
Redirect non-www to www in Apache .htaccess (Apache Configuration)
3 years ago

Redirect www to non-www in Apache .htaccess

Apache Configuration
Example how to redirect visitors from www.domain.com to domain.com
3 years ago

Disable error output in Symfony2

PHP
Want to disable error output to the screen on a production environment in Symfony2? Use this code!
3 years ago

Get user by security context Symfony2

PHP
This example shows you how to get the user object by the security context in Symfony2.
3 years ago

Add virtualhost in Apache non SSL

Apache Configuration
This example shows you how to add a virtualhost in Apache (non SSL).
3 years ago

Symfony2 deny access in controller by role

PHP
This example shows you how to block users if they don't have a specific role.
3 years ago

Get csrf token in Symfony2

PHP
This example shows you how to get the csrf token in Symfony2.
3 years ago

How to check ROLES in Symfony2

PHP
This example shows you how to check if an user has a specific role.
3 years ago

How to use Swiftmailer in Symfony2

PHP
This example shows you how to user Swiftmailer in Symfony2.
3 years ago

Symfony2 check if user is loggedin

PHP
This example shows you how to check if an user is loggedin. Its does not check for ROLES.
3 years ago

Symfony2 service

PHP
This example shows how to create a Symfony2 service that injects the entity manager into the class
3 years ago

Create Routing for Symfony2

PHP
This example describes a routing in Symfony2.
3 years ago

Set Nginx server with SSL

Other
This example shows you how to configure Nginx with SSL.
3 years ago

Set Apache virtualhost with SSL

Apache Configuration
This example shows you how to create a virtualhost with apache that uses SSL.
3 years ago