<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Using the CakePHP selectTag HtmlHelper</title>
	<atom:link href="http://shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/feed/" rel="self" type="application/rss+xml" />
	<link>http://shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/</link>
	<description>Shane Shepherd: web design and development; music</description>
	<pubDate>Tue, 06 Jan 2009 00:55:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: greenejd</title>
		<link>http://shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-22743</link>
		<dc:creator>greenejd</dc:creator>
		<pubDate>Tue, 09 Dec 2008 15:26:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-22743</guid>
		<description>I tried your example which helped, but eventually used the following method:
http://book.cakephp.org/view/201/options-empty</description>
		<content:encoded><![CDATA[<p>I tried your example which helped, but eventually used the following method:<br />
<a href="http://book.cakephp.org/view/201/options-empty" rel="nofollow">http://book.cakephp.org/view/201/options-empty</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 13. ActiveRecord en CakePHP y ORM &#171; Tutorial CakePHP informal, sobre la marcha. ¡Participa!</title>
		<link>http://shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-22621</link>
		<dc:creator>13. ActiveRecord en CakePHP y ORM &#171; Tutorial CakePHP informal, sobre la marcha. ¡Participa!</dc:creator>
		<pubDate>Fri, 14 Nov 2008 11:16:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-22621</guid>
		<description>[...] Hacía poco había utilizado el ayudante HTML selectTag para rellenar la lista desplegable de una vista y mi tendencia instintiva -por así decirlo- fue razonar por analogía, sin darme cuenta. En otras palabras, si la lista desplegable de una vista se rellenaba con un ayudante HTML, ¿qué impedía utilizar otro, para imprimir cualquier campo de un registro relacionado, y no su identificador? Es decir, me pasó lo mismo que a Fran. Por cierto, también hay que decir que son varios los principiantes del Grupo Google CakePHP -en inglés- que encuentran algo confuso este ayudante HTML, como hacen aquí. [...]</description>
		<content:encoded><![CDATA[<p>[...] Hacía poco había utilizado el ayudante HTML selectTag para rellenar la lista desplegable de una vista y mi tendencia instintiva -por así decirlo- fue razonar por analogía, sin darme cuenta. En otras palabras, si la lista desplegable de una vista se rellenaba con un ayudante HTML, ¿qué impedía utilizar otro, para imprimir cualquier campo de un registro relacionado, y no su identificador? Es decir, me pasó lo mismo que a Fran. Por cierto, también hay que decir que son varios los principiantes del Grupo Google CakePHP -en inglés- que encuentran algo confuso este ayudante HTML, como hacen aquí. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slimcady</title>
		<link>http://shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-22213</link>
		<dc:creator>slimcady</dc:creator>
		<pubDate>Tue, 23 Sep 2008 05:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-22213</guid>
		<description>i'm trying to just create a "selected" option and currently this is what i have:

$html-&#62;SelectTag('Event/is_private', array("Y" =&#62; "Yes", "N" =&#62; "No" ),  array("tabindex" =&#62; 4));

basically i just want the "Yes" option to be the default, and i can't seem to wrap my mind around the idea of $optionAttr array to feed it the proper value.

sry i'm a noob.

thanks!</description>
		<content:encoded><![CDATA[<p>i&#8217;m trying to just create a &#8220;selected&#8221; option and currently this is what i have:</p>
<p>$html-&gt;SelectTag(&#8217;Event/is_private&#8217;, array(&#8221;Y&#8221; =&gt; &#8220;Yes&#8221;, &#8220;N&#8221; =&gt; &#8220;No&#8221; ),  array(&#8221;tabindex&#8221; =&gt; 4));</p>
<p>basically i just want the &#8220;Yes&#8221; option to be the default, and i can&#8217;t seem to wrap my mind around the idea of $optionAttr array to feed it the proper value.</p>
<p>sry i&#8217;m a noob.</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asipo</title>
		<link>http://shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-22122</link>
		<dc:creator>asipo</dc:creator>
		<pubDate>Tue, 12 Aug 2008 11:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-22122</guid>
		<description>uh oh i manage to solve already
( sry for spamming )

its because of the array result from by ganeratelist

it shud be:
Array ( [MALE] =&#62; MALE [FEMALE] =&#62; FEMALE ) 

instead of:
Array ( [15] =&#62; MALE [16] =&#62; FEMALE )</description>
		<content:encoded><![CDATA[<p>uh oh i manage to solve already<br />
( sry for spamming )</p>
<p>its because of the array result from by ganeratelist</p>
<p>it shud be:<br />
Array ( [MALE] =&gt; MALE [FEMALE] =&gt; FEMALE ) </p>
<p>instead of:<br />
Array ( [15] =&gt; MALE [16] =&gt; FEMALE )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asipo</title>
		<link>http://shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-22121</link>
		<dc:creator>asipo</dc:creator>
		<pubDate>Tue, 12 Aug 2008 11:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-22121</guid>
		<description>i have a problem with saving a value from selectTag

the array looks like this:
Array ( [15] =&#62; MALE [16] =&#62; FEMALE )

its display correctly in the combo box

but when i press the save button

the result in the database is "15" or "16"
my expectation it shud be "MALE" or "FEMALE"

how to overcome this problem?</description>
		<content:encoded><![CDATA[<p>i have a problem with saving a value from selectTag</p>
<p>the array looks like this:<br />
Array ( [15] =&gt; MALE [16] =&gt; FEMALE )</p>
<p>its display correctly in the combo box</p>
<p>but when i press the save button</p>
<p>the result in the database is &#8220;15&#8243; or &#8220;16&#8243;<br />
my expectation it shud be &#8220;MALE&#8221; or &#8220;FEMALE&#8221;</p>
<p>how to overcome this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-18063</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Mon, 22 Oct 2007 13:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-18063</guid>
		<description>In this example you must have a function called "select" in agents_controller.php that returns $agentArray.  I hope this helps!</description>
		<content:encoded><![CDATA[<p>In this example you must have a function called &#8220;select&#8221; in agents_controller.php that returns $agentArray.  I hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PRF!</title>
		<link>http://shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-18051</link>
		<dc:creator>PRF!</dc:creator>
		<pubDate>Mon, 22 Oct 2007 01:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.shepherdweb.com/2007/01/07/using-the-cakephp-selecttag-htmlhelper/#comment-18051</guid>
		<description>and the controller /agents/select ??

i've a problem because $agentArray comes null..

tnks</description>
		<content:encoded><![CDATA[<p>and the controller /agents/select ??</p>
<p>i&#8217;ve a problem because $agentArray comes null..</p>
<p>tnks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
