PHP Archive

CakePHP Gmail Component

Here is a very simple component for easily sending email from a Gmail account in CakePHP. Its basically just an extended version of the standard Email component but configured for Gmail direct SMTP.

PHP socket connection consuming 100% CPU usage

A small tip for working with socket connections that consume a high percentage of CPU usage

Kohana PHP Framework: First impressions

I've been working with the Kohana PHP Framework at my full-time job lately. I'd really love to bash Kohana since I'm a loyal CakePHP fan but frankly, I'm pretty impressed with Kohana. Here are some things I've noticed while using Kohana and how it compares to CakePHP.

Easy pagination using Matt Curry's custom find types

Matt Curry recently released a great e-book called "Super Awesome Advanced CakePHP Tips". As part of that e-book Matt shows us his implementation of custom find types (Pages 11 -15). His system works well and I have been using it on this blog. When it came time to paginate my own articles, I realized that by adding one additional method to my AppModel, I could easily reuse my custom find types for pagination as well.

A collection of Coda clips for CakePHP

Coda, the world's best IDE for Mac users, comes with a cool little feature called "clips". Its basically a snippet of code you can click on or type a "trigger" and it will output the code onto your document. I'm sharing my collection of Coda clips for CakePHP.

Page 1 of 2