Blogs

Richard's picture

CakePHP: Auto populating foreign key dropdown fields

One of the neet features of CakePHP's scaffolding is that it automatically populates your foreign key (belongsTo, hasAndBelongsToMany) fields in your forms.

Lets take a look at a simple example to illustrate this:

app/models/article.php:

class Article extends AppModel {
	var $hasAndBelongsToMany = array(
		"Tag"
	);
}

app/models/tag.php:

Richard's picture

GeekUp Sheffield: The Aftermath

Last nights GeekUp was a lot of fun. Finbarr's presentation on making Agile pay was very informative and my talk on CakePHP went off without a hitch (apart from a minor technical hiccup with the hardware at the start).

As my first presentation, I was looking to learn as much as I could from the experiance. Here's what I came away with:

Richard's picture

GeekUp Sheffield April 1st: CakePHP Presentation

GeekUp LogoNext Wednesday (ironically April 1st) I'll be doing a short (30 minute) presentation about the CakePHP framework to the good people at Sheffield GeekUp.

This is the first time I've ever done a 'proper' (ie. one that was planned and prepared) presentation and as you might expect I'm a bit jittery.

Richard's picture

Welcome to Richard@Home

Hi there :-)

Welcome the Richard@Home's new Drupal powered blog. If I have any regular readers left, you will have seen this site evolve through a few incarnations:

Syndicate content