June 11, 2015

PHP7, Focusing on Performance in a Big Way!

PHP has historically been marred by its own ease of use. That is to say the flexibility and lack of restrictions upon using PHP have led to some historically sloppy code and a general misunderstanding that PHP cannot handle prime time application development. That’s largely been the focus of industry experts the last several years, particularly emphasized by the efforts of Facebook and HHVM. Recent research by Zend showed 25% of Enterprise “users” (that is, engineers, architects, and developers) were concerned or challenged with PHP’s performance. This has historically been the tipping point for major software applications to balk at PHP in favor of Java or Ruby. Now that the community has voted on…

June 10, 2015

Setting up Ruby+Compass in Vagrant

For a variety of reasons, it appears the default frontend_config.sh bash script does not work 100% of the time in the litwicki-lemp vagrant box. So, I’ve added a simple manual step-by-step of the bash script that works. If anyone can figure out what I’ve done wrong in the bash script I’d be forever grateful!

June 4, 2015

Symfony dynamic Entity selection in FormType

Symfony is fantastic for building very quick snappy applications; especially CRUD apps. However, sometimes we want to quickly alter the default CRUD forms with some business logic. For example, if we have Products and Categories and want to be able to create new product entities with a specified category but somehow restrict which categories are accessible in the product form. Altering the FormType Class

Define the Form as a Service

Usage in a Controller