'CakePHP' Category

  • Comparing CakePHP with other frameworks

    October 12, 2007

    From IBM’s new series entitled PHP Frameworks comes our phrase of the day: “If you’ve overheard a conversation about PHP frameworks, that conversation was probably about CakePHP.”

  • Overriding specific HTML tags before using helper methods

    September 27, 2007

    While enjoying the wonderful CakePHP live show (don’t despair, I will be on soon, adding some of my latin flavor to spice up phishy’s boring comments… just kidding , PhpNut made a remark that is worth listening to: CakePHP 1.2 allows you to override CakePHP’s defined tags. Yeah, I know, so did CakePHP 1.1, but [...]

  • CakePHP 1.2 tip of the day: be mindful of Model::set

    September 26, 2007

    Even if Model::set seems to have a defined functionality, it wouldn’t be insane that you get stuck with a common developer mistake: forget what you should expect of a method. Consider the following code running on a controller (where Model is an example model, and assume validates() always returns true): $this->data = array(‘Model’ => array(‘field1′ [...]

  • Modelizing HABTM join tables in CakePHP 1.2: with and auto-with models

    September 19, 2007

    One of CakePHP 1.2 coolest features are known as HABTM with models, which are particularly useful when you have a hasAndBelongsToMany binding between two models that may contain extra information (i.e: table fields) attached to the binding. They are also extremely useful when you need to make some model operations to the join table and [...]

  • Using Configure in CakePHP applications

    September 14, 2007

    I love CakePHP’s Configure class, available both in CakePHP 1.1 and 1.2 branches. It is extremely useful to store application settings that you may need application-wide. What I normally do is add this line to app/config/bootstrap.php: Configure::load(‘config’); And then I create a file named app/config/config.php with all my application specific settings, like so: $config['Settings'] = [...]

  • Response to dho leaving the CakePHP team

    August 31, 2007

    I’ve just finished reading dho’s goodbye message to the CakePHP team. While I may or may not agree with Daniel’s feelings of being left behind, the thing that should always matter are actual facts, not feelings. The fact is that I was present the day CakePHP’s developers channel changed its password. At that time, it [...]

  • Chilling out thanks to CakePHP

    February 5, 2007

    Who said programming can’t be fun? Who said it should take you away all your free time? One of the things programmers look for (or should, for that matter) is how to speed up the development process. Why? Because everyone enjoys their free time. If you are a PHP programmer, and you are looking forward [...]

  • Limiting the associated models returned with CakePHP

    December 13, 2006

    Tom OReilly produced a handy solution on the bakery (Keeping bindModel and unbindModel out of your Controllers) to allow to overcome performance issues when querying a model that has a lot of associations with other models. While his solutions prooves useful, I wanted to change it mainly because I didn’t want to have to re-define [...]

  • Something to consider when saving HABTM records in CakePHP

    December 10, 2006

    Just the other day I was in the process of saving an HABTM (Have And Belongs To Many) field with CakePHP, specifically for saving the relations between a model Project and another model Category. I first had to do a small extension to the helper since Category was also a n-depth level tree, so I’ve [...]

  • CakePHP Web Service native support

    November 29, 2006

    Today an interesting discussion went on CakePHP Google Group regarding the native support for web services Cake offers. After that a couple of articles got written on different blogs (they are still awaiting authorization to be published on the bakery) and are available at: Quick and Dirty getting your CakePHP to REST: a short article [...]

 
Powered by Wordpress and MySQL. Clauz's design for by Cricava