Refactoring Legacy Applications Using CakePHP

By: Chris Hartjes
Publication Date:
Price: $13.00
Pages: 83
Format:

This book is no longer for sale on WJGilmore.com. Please purchase on Amazon.com.

Have you ever wanted to start using the CakePHP web application framework, but were wondering about its use in the real world? As an experienced developer who is familiar with CakePHP, author Chris Hartjes decided to put together a book that can help people out.


Description

Have you ever wanted to start using the CakePHP web application framework, but were wondering about its use in the real world?  As an experienced developer who is familiar with CakePHP, I decided to put together a book that can help people out.  The result is “Refactoring Legacy Applications Using CakePHP”.

With any web application framework, the most common questions are usually “how do I do X?” where X is usually a concept that is pretty common to web development work.  I felt that the best way to show people how to move an older legacy application over to using CakePHP was to do exactly that.  The book is a case study showed how I refactored an adminstrative application used in my simulation baseball league from a spaghetti PHP mishmash over to a well-structured CakePHP application.

The trick is to understand how to use CakePHP’s conventions to your advantage, instead of fighting against them.  In this book I cover things like

  • Turning your database tables into models with relationships
  • Better organization of code using “fat model, skinny controller” practices
  • Understanding how to separate business logic from display logic

Here’s what CakePHP lead developer Nate Abele had to say about the book:

Hartjes’ book takes an in-depth look at pitfalls common to many legacy web applications, particularly those written in PHP. The application migration strategies presented make this an ideal read for developers new to MVC separation, database abstraction, and related concepts, as the one-to-one mapping between legacy and framework-oriented code turns abstract concepts into easily-digestable code examples.

About the Author

Chris Hartjes has been building web applications of all shapes and sizes and since 1998, ranging from small personal blogs to large-scale adult dating web sites. Chris is currently with Moontoast building social commerce applications. He enjoys speaking at conferences and tries to share what he’s learned via his blog.

He lives in Milton, Ontario, Canada with his long-suffering wife, two kids and two cats.