Latest Reading

  • cakephp

    CakePHP3 Database Migration Commands

    A list of a few helpful commands to use when creating database migration files.

    Read More

  • Laravel Logo

    Install CakePHP3 on Laravel Homestead

    This guide is not comprehensive, it is assumed that you have already installed Vagrant, Laravel Homestead and VirtualBox. The guide is based on Mac OSX10.10. CakePHP3 requires the php5-intl extension that at the time of writing is not by default installed on Laravel Homestead. The good news is that it’s easy to install. First you […]

    Read More

  • codio

    Install CakePHP2 on Codio

    I only just discovered Codio yesterday! How come nobody ever told me about this? If you haven’t tried it yet and you are a keen programmer you should try it out. Chances are though you here because you are trying to get CakePHP2 working. Well I’ve put in the hard work for you so just […]

    Read More

  • cakephp

    Encrypt & Decrypt CakePHP Database Fields

    In a current project I’ve been working on I needed to encrypt and decrypt database fields such as user phone numbers and email address. While this is not the only security measure you should have in place it’s certainly worth while for sensitive data that you want to provide a little extra obscurity for. Remember […]

    Read More

  • cakephp

    Limit CakePHP Results by YEAR, MONTH or DAY

    You can never have to many tricks up your sleeves when it comes to pulling the data you need from your database. Sometimes you only want to return a limited set of results based on the year, month or day. So how do you do this? The solution is quite simple. The following code can […]

    Read More

  • cakephp

    CakePHP Find Neighbors Method with UUID Primary Keys

    I recently decided to switch over an application I have been developing from using INT primary keys to use CakePHP’s ability to generate UUID primary keys. It wasn’t difficult to do, you simply set the primary key to BINARY(36) and Cake will do the rest. (the CakePHP manual recommends VARCHAR(36) or CHAR(36) however do a […]

    Read More