made it work for CakePHP 2.4

Thanks for this plug-in. This is what I had to do to make it work for CakePHP 2.4.1.