Building “the blog tutorial”… the TDD way (part 1 – model testing)

CakePHP 2.2 Part 2 I personally consider Test Driven Development (TDD) as a “must do”, rather than a “nice to

Read more

User Auth with CakePHP 2.1 – part 3

As promised in the previous part we’ll take a look at the admin section. If you remember, we’ve setup our

Read more

User Auth with CakePHP 2.1 – part 2

CakePHP 2.1 Now that we’ve completed our basic setup for Auth, let’s take a look at the User.php model… class

Read more

User Auth with CakePHP 2.1 – part 1

CakePHP 2.1 The example application in the CakePHP book does a very good job of covering setup and implementation of

Read more

“Error: Database connection “Mysql” is missing, or could not be created”. CakePHP 2.0 — cake bake trouble

CakePHP 2.0 Nothing like coming back from a hiatus with a WTF? post. My favorite “cake bake” started failing with

Read more

Setting up Nginx and CakePHP 2.0

Nginx is a pretty awesome web server (fast, and easy to configure… at least I prefer the syntax over some

Read more

Quick comparison of Nginx and Apache

This was a quick test as I was playing around with Nginx and CakePHP 2.0. The numbers were interesting, however.

Read more

Offload read queries to a replica DB for better performance

In most web application, which require a lot of find()’s especially if more than a couple of models are involved,

Read more

If you use UUID’s…

Be extra careful to make sure that, according to convention, your ‘id’ column (or primary key) is: char(36) and never

Read more

find(‘first’)… gotcha

Just a simple tip… Here’s a typical find() example: $this->Post->find(’first’, array(’condition’ => array(’id’ => 5))); Why does it return me

Read more
%d bloggers like this: