Currently browsing tag

php

Migrating from CakePHP 1.3 to 2.0

I love CakePHP. It’s a PHP framework with a clear and strict Model / View / Controller (MVC) separation and a great abstraction layer for reading, updating and saving objects to the database. Recently, the CakePHP team released CakePHP 2.0, and I started updating my projects to this new version. …

Days intervals in PHP

I needed a funtion that provided me with an array of all the dates between two given dates. This is quite a trivial function, but all over the net there are several implementations which are often quite bloated. By leveraging the power of strtotime it’s actually pretty easy! function getDays($start, …