Security by obscurity is never a good policy but there are still some legitimate reasons why you would want to hide your id’s.
I want to walk you through a blank CakePHP 3 setup and install a few worthwhile plugins. The primary goal of this post is to show how to setup Dereuromark’s TinyAuth plugin which is fantastic however may leave a few newbies scratching their heads trying to get it set up. So what follows will be […]
Continuing from my last post CakePHP3 Database Migration Commands as I promised this is a followup with actual working examples that you can use right away.
A list of a few helpful commands to use when creating database migration files.
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 […]
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 […]
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 […]
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 […]
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 […]