CustomScripts Blog

Programming and open-source tips and tricks

PHP

THis category contains all php related posts

What is your job as a developer?

May 30, 2017 by Pierre du Plessis Leave a Comment

What is your job as a developer? Is it to write code? Well of course, but is it just about writing code? There is a general term called “code monkey”, which basically means “doing coding so simple a monkey could do it”. So if coding can be so easy that a monkey can do it, … [Read more…]

Posted in: General, PHP, Programming Tagged: developer

Feature toggle in PHP

September 16, 2015 by Pierre du Plessis Leave a Comment

Feature toggles (also called feature switch, feature flag, feature flipper, conditional feature, etc) is a technique used in software development in a continues deployment environment, where features that are not-yet-ready are deployed to production, but are turned off using a config flag. This practice allows developers to deploy unstable code to production, and once the … [Read more…]

Posted in: General, PHP, Programming Tagged: feature-toggle, library, PHP

Dynamic layouts in Twig

December 17, 2013 by Pierre du Plessis 4 Comments

Recently I worked on a project that needed dynamic layouts for each bundle. The idea was to have a base template, then several layout templates that each extends from the base. Each view would then extend from one of the layout files. So this is how it worked. The base template looked like this: <!DOCTYPE … [Read more…]

Posted in: PHP, Programming, Symfony Tagged: symfony2, twig
1 2 Next »

Categories

  • General (5)
  • Programming (8)
    • CakePHP (3)
    • PHP (4)
    • Symfony (3)

Archives

  • May 2017
  • September 2015
  • October 2014
  • December 2013
  • May 2013
  • October 2012
  • March 2012
  • December 2009

Copyright © 2025 CustomScripts Blog.

Omega WordPress Theme by ThemeHall