Blog  
 
  Lextech Blog  

Recent Articles

Making Money
With Technology
Systems
Engineering

Lextech

Tech News

CakePHP… Brain Dessert for PHP Developers

Written by: Jeff

The guys over at CakePHP have whipped up something full of awesomeness for the PHP community. They have provided a tool to make our lives easier and more productive by removing the hassles of creating redundant boilerplate code using a framework to cleanly build web applications. I’ll briefly delve into what Cake is and why I think it is so awesome.

The main concept to learn behind cake is the Model-View-Controller (MVC) architecture. This basically means that the code to handle data (model), the code to handle html (view), and the code to handle logic (controller) is neatly broken up into three separate files. In essence, the controller gets data from the model (usually synonymous with a database table) and figures out what it wants to do with the data, then supplies the view with the processed data. Additionally, if you want to get started quickly, you can declare a variable called scaffold in your controller and CRUD pages will be auto-magically created for that table in your database!

To take things a step further, you can run a command line utility that can create permanent copies of these CRUD pages and help you define relationships between your models. The CakePHP project is very active and I’ve only glanced on a couple of the cool features.

Once you get in the mindset of using it, which includes familiarizing yourself with some naming conventions and taking full advantages of models instead of making raw queries, you’ll be creating PHP sites in a fraction of the time. (For further information about getting started, please look at The CakePHP Manual.)

Tags: ,

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • Facebook
  • Slashdot
  • Technorati

2 Responses to “CakePHP… Brain Dessert for PHP Developers”

  1. SukiaLogic Says:

    Absolutly, cakephp makes my life easier, now i can code and have time for vacations :)

Trackbacks

logic model

logic model…

I Googled for something completely different, but found your page…and have to say thanks. nice read……

Leave a Reply