<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 11:55:06 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Tim Koschuetzki's Blog: How to put Combined Fields Into CakePHP's Model->generateList()]]></title>
      <guid>http://www.phpdeveloper.org/news/8426</guid>
      <link>http://www.phpdeveloper.org/news/8426</link>
      <description><![CDATA[<p>
<i>Tim Koschuetzki</i> has <a href="http://php-coding-practices.com/cakephp-specific/how-to-put-combined-fields-into-cakephps-model-generatelist/">posted this tutorial</a> today about how to create form fields with combined information from more than one database column.
</p>
<blockquote>
Two days ago, someone on #cakephp had the problem of getting combined values out of the Model->generateList() function in CakePHP. I advised him on doing some Set::extract() things, which at the end of the day got rather complicated. As a result, I was conscience-stricken. Here is a much more elegant solution I could come up with.
</blockquote>
<p>
He introduces the generateList function first, showing how to use it to create a simple select list in your form. Unfortunately, it only understands using one field at a time, so he worked around it, creating a solution - his myGenerateList function - that handles things similarly and returns the same kinds of results (so it can be used with the set() function as well).
</p>]]></description>
      <pubDate>Fri, 10 Aug 2007 09:36:00 -0500</pubDate>
    </item>
  </channel>
</rss>
