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.”
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 [...]
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′ [...]
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 [...]
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'] = [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]