I am mikek's Blog

The personal blog of Mike Karthauser, who you may know from Brightstorm Limited or the internet.

New CakePHP has landed – 1.3.0-beta released

Today i wake to find the fantastic news that CakePHP 1.3 is now in beta. You can read more about that via cakephp.org

The bit that particularly tickles me about this new is the inclusion of something i’ve wanted since i first heard about it, virtual fields.

Virtual fields are a new feature in the Model for CakePHP 1.3. Virtual fields allow you to create arbitrary SQL expressions and assign them as fields in a Model. These fields cannot be saved, but will be treated like other model fields for read operations. They will be indexed under the model’s key alongside other model fields.

For anyone who has ever had to stitch together $firstname.’ ‘.$lastname to make $name fields and wondered why you couldn’t get that in a $this->Model->find(‘list’), this is for you.

Once again, many thanks to the fine work from CakePHP developers and contributors, especially Mark Story.

Top new year news indeed and looking forward to the full 1.3. stable release.


Filed under: development, , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

mikek on twitter

%d bloggers like this: