<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for Yet another blog about PHP, HTML and CSS</title>
	
	<link>http://blog.pepa.info</link>
	<description>Petr 'PePa' Pavel</description>
	<pubDate>Sat, 27 Feb 2010 09:54:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForYetAnotherBlogAboutPhpHtmlAndCss" /><feedburner:info uri="commentsforyetanotherblogaboutphphtmlandcss" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on Getting rid of JOINs in updateAll() query by Jesh</title>
		<link>http://feedproxy.google.com/~r/CommentsForYetAnotherBlogAboutPhpHtmlAndCss/~3/lu99Ptn_wXE/</link>
		<dc:creator>Jesh</dc:creator>
		<pubDate>Sun, 07 Feb 2010 18:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pepa.info/?p=144#comment-7540</guid>
		<description>Nice to know but any idea why Cake left join associated model when calling Model::updateAll() ?</description>
		<content:encoded><![CDATA[<p>Nice to know but any idea why Cake left join associated model when calling Model::updateAll() ?</p>
]]></content:encoded>
	<feedburner:origLink>http://blog.pepa.info/php-html-css/cakephp/getting-rid-of-joins-in-updateall-query/#comment-7540</feedburner:origLink></item>
	<item>
		<title>Comment on Getting rid of JOINs in updateAll() query by kleingeist</title>
		<link>http://feedproxy.google.com/~r/CommentsForYetAnotherBlogAboutPhpHtmlAndCss/~3/-yoaqMm05k8/</link>
		<dc:creator>kleingeist</dc:creator>
		<pubDate>Wed, 16 Dec 2009 15:33:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pepa.info/?p=144#comment-6497</guid>
		<description>Hey thanks,
this was exactly what i was looking for :)

And unfortunately i have to agree, that relationships seem to stand in the way too often :(
But well, thats the cake way of coding and we choose it.</description>
		<content:encoded><![CDATA[<p>Hey thanks,<br />
this was exactly what i was looking for :)</p>
<p>And unfortunately i have to agree, that relationships seem to stand in the way too often :(<br />
But well, thats the cake way of coding and we choose it.</p>
]]></content:encoded>
	<feedburner:origLink>http://blog.pepa.info/php-html-css/cakephp/getting-rid-of-joins-in-updateall-query/#comment-6497</feedburner:origLink></item>
	<item>
		<title>Comment on Populating a SELECT box with distinct values by CyberCortex</title>
		<link>http://feedproxy.google.com/~r/CommentsForYetAnotherBlogAboutPhpHtmlAndCss/~3/TNXvN0wap3Y/</link>
		<dc:creator>CyberCortex</dc:creator>
		<pubDate>Mon, 07 Dec 2009 23:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pepa.info/?p=90#comment-6360</guid>
		<description>After a lot of tests, I finally solved this problem with this ridiculous line:

$years = $this-&gt;Payments-&gt;find('list', array('fields' =&gt; array('year', 'year')));

Sorry for my bad english, I am Brazilian.</description>
		<content:encoded><![CDATA[<p>After a lot of tests, I finally solved this problem with this ridiculous line:</p>
<p>$years = $this-&gt;Payments-&gt;find(&#8217;list&#8217;, array(&#8217;fields&#8217; =&gt; array(&#8217;year&#8217;, &#8216;year&#8217;)));</p>
<p>Sorry for my bad english, I am Brazilian.</p>
]]></content:encoded>
	<feedburner:origLink>http://blog.pepa.info/php-html-css/cakephp/populating-a-select-box-with-distinct-values/#comment-6360</feedburner:origLink></item>
	<item>
		<title>Comment on Populating a SELECT box with distinct values by Petr 'PePa' Pavel</title>
		<link>http://feedproxy.google.com/~r/CommentsForYetAnotherBlogAboutPhpHtmlAndCss/~3/_x_eJ1exqQg/</link>
		<dc:creator>Petr 'PePa' Pavel</dc:creator>
		<pubDate>Fri, 25 Sep 2009 09:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pepa.info/?p=90#comment-4556</guid>
		<description>Ming, your code wouldn't work for several reasons:
&lt;ol&gt;
	&lt;li&gt;If you just return something then you can't use it in your view to populate SELECT box. Maybe you omitted $this-&gt;set() just to keep your code simple though.&lt;/li&gt;

	&lt;li&gt;With $this-&gt;set() your solution would pass through
array(0 =&gt; value1, 1 =&gt; value2 ...)
and thus if I choose value1 in the SELECT box it's in fact "0" that gets submitted.
We need
array(value1 =&gt; value1, value2 =&gt; value2 ...)
because we want value1 submitted.&lt;/li&gt;

	&lt;li&gt;I also considered that you were in fact, just suggesting to use find('list). But then again you get
array(0 =&gt; value1, 1 =&gt; value2 ...)
&lt;/li&gt;
&lt;/ol&gt;

But thanks for commenting. Expressing opinions, making suggestions. That's what these comments are for.</description>
		<content:encoded><![CDATA[<p>Ming, your code wouldn&#8217;t work for several reasons:</p>
<ol>
<li>If you just return something then you can&#8217;t use it in your view to populate SELECT box. Maybe you omitted $this->set() just to keep your code simple though.</li>
<li>With $this->set() your solution would pass through<br />
array(0 => value1, 1 => value2 &#8230;)<br />
and thus if I choose value1 in the SELECT box it&#8217;s in fact &#8220;0&#8243; that gets submitted.<br />
We need<br />
array(value1 => value1, value2 => value2 &#8230;)<br />
because we want value1 submitted.</li>
<li>I also considered that you were in fact, just suggesting to use find(&#8217;list). But then again you get<br />
array(0 => value1, 1 => value2 &#8230;)
</li>
</ol>
<p>But thanks for commenting. Expressing opinions, making suggestions. That&#8217;s what these comments are for.</p>
]]></content:encoded>
	<feedburner:origLink>http://blog.pepa.info/php-html-css/cakephp/populating-a-select-box-with-distinct-values/#comment-4556</feedburner:origLink></item>
	<item>
		<title>Comment on Populating a SELECT box with distinct values by Ming</title>
		<link>http://feedproxy.google.com/~r/CommentsForYetAnotherBlogAboutPhpHtmlAndCss/~3/oaZ0wX3ArNA/</link>
		<dc:creator>Ming</dc:creator>
		<pubDate>Fri, 25 Sep 2009 07:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pepa.info/?p=90#comment-4554</guid>
		<description>How about this...

$list = $this-&gt;find('list', array('fields' =&gt; array('Model.field')));
return array_unique($list);</description>
		<content:encoded><![CDATA[<p>How about this&#8230;</p>
<p>$list = $this-&gt;find(&#8217;list&#8217;, array(&#8217;fields&#8217; =&gt; array(&#8217;Model.field&#8217;)));<br />
return array_unique($list);</p>
]]></content:encoded>
	<feedburner:origLink>http://blog.pepa.info/php-html-css/cakephp/populating-a-select-box-with-distinct-values/#comment-4554</feedburner:origLink></item>
	<item>
		<title>Comment on SQL functions or keywords in CakePHP conditions by Rubens Mariuzzo</title>
		<link>http://feedproxy.google.com/~r/CommentsForYetAnotherBlogAboutPhpHtmlAndCss/~3/uGTHpFBFB-g/</link>
		<dc:creator>Rubens Mariuzzo</dc:creator>
		<pubDate>Fri, 29 May 2009 05:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pepa.info/?p=84#comment-3015</guid>
		<description>Thanks a lot it save me some extra hours. Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks a lot it save me some extra hours. Thanks.</p>
]]></content:encoded>
	<feedburner:origLink>http://blog.pepa.info/php-html-css/cakephp/sql-functions-or-keywords-in-cakephp-conditions/#comment-3015</feedburner:origLink></item>
	<item>
		<title>Comment on Absolute positioning in HTML e-mails for Outlook 2007 by ciccio</title>
		<link>http://feedproxy.google.com/~r/CommentsForYetAnotherBlogAboutPhpHtmlAndCss/~3/qiAPQ1gPNAQ/</link>
		<dc:creator>ciccio</dc:creator>
		<pubDate>Thu, 12 Feb 2009 01:23:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pepa.info/?p=21#comment-2261</guid>
		<description>Sorry for being unpolite.
And I had really appreciated the way you answered to my comment.
But I arrived here searching for “&lt;div v:shape=” because I have to deal with a customer which has about 20000 xml docs containg html parts.
The docs are contained in a database of a product that has to be migrated.
I wrote a software that, among the others, extract the xml from the db blobs, transform some xml nodes and extract some html parts to build a html document, as a part of the migration project.
While I'm writing it, I was doing some tests against a number of documents as xml parsing and transformation is time and resource consuming, and all went ok.
Now that the sw is 99.9% done, I've tested it against a broader set of documents and it's failing because of that v:shape attribute.
Now I have to choose among:
- add the xmlns to all the documents, whether they have the attr or not (little effort, not elegant)
- navigate all the nodes and check all the attributes, sanitizing them or adding the xmlns if necessary (middle effort, time and resource consuming)
- implement my own transformer (high effort)
- ?
AFAIK, all the solutions require time and you know time==money/life.
That's way I'm unhappy.</description>
		<content:encoded><![CDATA[<p>Sorry for being unpolite.<br />
And I had really appreciated the way you answered to my comment.<br />
But I arrived here searching for “&lt;div v:shape=” because I have to deal with a customer which has about 20000 xml docs containg html parts.<br />
The docs are contained in a database of a product that has to be migrated.<br />
I wrote a software that, among the others, extract the xml from the db blobs, transform some xml nodes and extract some html parts to build a html document, as a part of the migration project.<br />
While I&#8217;m writing it, I was doing some tests against a number of documents as xml parsing and transformation is time and resource consuming, and all went ok.<br />
Now that the sw is 99.9% done, I&#8217;ve tested it against a broader set of documents and it&#8217;s failing because of that v:shape attribute.<br />
Now I have to choose among:<br />
- add the xmlns to all the documents, whether they have the attr or not (little effort, not elegant)<br />
- navigate all the nodes and check all the attributes, sanitizing them or adding the xmlns if necessary (middle effort, time and resource consuming)<br />
- implement my own transformer (high effort)<br />
- ?<br />
AFAIK, all the solutions require time and you know time==money/life.<br />
That&#8217;s way I&#8217;m unhappy.</p>
]]></content:encoded>
	<feedburner:origLink>http://blog.pepa.info/php-html-css/html-e-mail/absolute-positioning-outlook-2007/#comment-2261</feedburner:origLink></item>
	<item>
		<title>Comment on Absolute positioning in HTML e-mails for Outlook 2007 by Petr 'PePa' Pavel</title>
		<link>http://feedproxy.google.com/~r/CommentsForYetAnotherBlogAboutPhpHtmlAndCss/~3/zDRwWcvfW78/</link>
		<dc:creator>Petr 'PePa' Pavel</dc:creator>
		<pubDate>Wed, 11 Feb 2009 07:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pepa.info/?p=21#comment-2246</guid>
		<description>I despise this MS-only stuff as much as you do but by closing my eyes I won't make it go away. So if a client specifically requests he wants his e-mail thing to show well in Outlook 2007 I just take a deep breath and do it. That's just life I guess.</description>
		<content:encoded><![CDATA[<p>I despise this MS-only stuff as much as you do but by closing my eyes I won&#8217;t make it go away. So if a client specifically requests he wants his e-mail thing to show well in Outlook 2007 I just take a deep breath and do it. That&#8217;s just life I guess.</p>
]]></content:encoded>
	<feedburner:origLink>http://blog.pepa.info/php-html-css/html-e-mail/absolute-positioning-outlook-2007/#comment-2246</feedburner:origLink></item>
	<item>
		<title>Comment on Absolute positioning in HTML e-mails for Outlook 2007 by ciccio</title>
		<link>http://feedproxy.google.com/~r/CommentsForYetAnotherBlogAboutPhpHtmlAndCss/~3/8H7P0q_IrvE/</link>
		<dc:creator>ciccio</dc:creator>
		<pubDate>Wed, 11 Feb 2009 01:14:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pepa.info/?p=21#comment-2245</guid>
		<description>Interesting...
"&lt;div v:shape="...

Please, stop publishing that crap on the web.</description>
		<content:encoded><![CDATA[<p>Interesting&#8230;<br />
&#8220;&lt;div v:shape=&#8221;&#8230;</p>
<p>Please, stop publishing that crap on the web.</p>
]]></content:encoded>
	<feedburner:origLink>http://blog.pepa.info/php-html-css/html-e-mail/absolute-positioning-outlook-2007/#comment-2245</feedburner:origLink></item>
	<item>
		<title>Comment on Populating a SELECT box with distinct values by Petr 'PePa' Pavel</title>
		<link>http://feedproxy.google.com/~r/CommentsForYetAnotherBlogAboutPhpHtmlAndCss/~3/CoJwuzh3468/</link>
		<dc:creator>Petr 'PePa' Pavel</dc:creator>
		<pubDate>Fri, 16 Jan 2009 12:03:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pepa.info/?p=90#comment-2024</guid>
		<description>Hi Steve, that's weird that you're getting an error. 
I'm using CakePHP 1.2.0.7692 RC3 and my real code differs from the example I have given in my post only in that I specify additional options like "order" and "recursive" for the find() call.

My best guess is that your find call doesn't return a valid search result array (e.g. because of a typo in a field name), or you changed the variable name that holds it but forgot to change it later in the combine call as well. I create this kind of errors all the time.

Petr</description>
		<content:encoded><![CDATA[<p>Hi Steve, that&#8217;s weird that you&#8217;re getting an error.<br />
I&#8217;m using CakePHP 1.2.0.7692 RC3 and my real code differs from the example I have given in my post only in that I specify additional options like &#8220;order&#8221; and &#8220;recursive&#8221; for the find() call.</p>
<p>My best guess is that your find call doesn&#8217;t return a valid search result array (e.g. because of a typo in a field name), or you changed the variable name that holds it but forgot to change it later in the combine call as well. I create this kind of errors all the time.</p>
<p>Petr</p>
]]></content:encoded>
	<feedburner:origLink>http://blog.pepa.info/php-html-css/cakephp/populating-a-select-box-with-distinct-values/#comment-2024</feedburner:origLink></item>
</channel>
</rss>
