Thoughts and tutorials from a mobile app and web developer in south west UK
Peter Fisher is a UK based freelance web and mobile app developer.
He is the host of the How To Code Well YouTube channel and can be hired for programming tuition and freelance development.
Video tutorials based on web and mobile development.
A quick PHP tutorial showing how to apply css classes to a Symfony 2 label when rending a twig template. The demonstration covers the differences between rendering normal form controls and labels within a twig template.
In short the label attribute is called label_attr and the field attribute is called attr.
Both can have the same available parameters but the label attribute must be the third parameter of the label control
Sometimes my Apache 2 Docker container refused to restart because the previous Apache PID was active.
The error I got was httpd (pid 1) already running in the docker container. Usually this happened after docker-machine refused to shut down properly or the Docker container stopped unexpectedly.
I got around this by writing a simple script that removes the stale PID files from the apache2 Docker container upon startup.
The script has been working without issue for the past month so I’ve decided to share it.
A simple PHP tutorial demonstrating how to change the domain of a phpunit functional test.
This example uses a test written for the Sylius E-commerce framework and changes the domain of a Sylius channel to use a custom host entry.
The default domain is set to localhost but this causes errors when testing against different Sylius channels. This tutorial gives an example of how to overcome this issue by changing the domain within the PHP unit test.
This is a simple guide to upgrading PCRE from 7.9 to 8.13 on a Centos 6.3 VPS.
The tutorial has step by step instructions on what command need to be used and what output to expect.
If you follow this guide correctly then the upgrade process should be relatively painless.
Symfony2 is the hottest PHP framework out at the moment so you would jump to the assumption that I would build all my projects in the latest and greatest.
Well last week I went against the grain and put a Symfony 1.4 site live. Not a Symfony2 site … I hear you ask!
So whats my reasoning?