Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


Handling NULL values in model-based lists of CakePHP

Oct 30, 2009, 08:23 (0 Talkback[s])
(Other stories by Xenofon Papadopoulos)

[ Thanks to Xenofon Papadopoulos for this link. ]

"I've been using CakePHP for a little while, and a common problem that keeps arising again and a again is that of handling NULL values in model-based lists of my forms. Consider the following common scenario:

"You need to keep track of some some people. For simplicity, let's say you care only about their name, last name and country of origin. Furthermore, you select the countries for a dictionary: a predefined list of countries, residing in its own table. Your database would be similar to this:"

Complete Story

Related Stories: