CakePHP Trackback Controller

A Trackback is a way for bloggers to recognise articles from other bloggers while keeping the content on their own site. For example, I could like an article onLifehacker, and instead
of commenting on Lifehacker, adding more content on their site, I could post an article on my own blog and do a Trackback to the original article. Increasing the content on my own site but also
giving props back to the original post. This is also a way for an up and coming blog to get their link on a well-known blog or website and drive more traffic to it. Of course
most site admins have to accept Trackbacks before the link to the derived post will appear (usually in the comments section, if not in a specialised Trackback part of the original post).

This post will describe how to create a controller that will accept trackbacks, and post links on your own blog, in CakePHP.

In technical terms, a Trackback is simply a HTTP POST to a website which must contain at least only a URL, or also a title, excerpt and blog name (blog_name). The website must return XML with a response
error (either 0 or 1) and a message if needed.

Click here if you want to get all the details, or just download the source code below:

cakephp-trackback-controller-1.0.zip (<8kB)

CakePHP Trackback Controller GitHub project page