Adding a Virtual Host with SSL in Apache webserver

PHP
This example shows how to configure a Virtual Host with SSL enabled, using a free SSL-certificate fro StartSSL. You can get your private key, public k...
3 years ago

Symfony2 add select form type

PHP
This example shows you how to add a selectbox form type in Symfony2.
3 years ago

Symfony2 add checkbox form type

PHP
This is how you add a checkbox form type in Symfony2.
3 years ago

How to get the RAW body with Guzzle

PHP
Example to get the RAW body content when doing a call with Guzzle http client.
3 years ago

Install Symfony2 project with bower, npm etc

Bash
These are the steps to install a new Symfony2 project with bower / npm etc.
3 years ago

Symfony2 get Firewall name

PHP
If you have two separated user areas with different firewall names and you need to know which firewall name is used for the current user, you can get ...
3 years ago

Symfony2 logout user

PHP
This code is an example of how to logout a user in Symfony2.
3 years ago

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