<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>CakePHP Google Group</title>
  <link>http://groups.google.com.tw/group/cake-php</link>
  <description>Search this group before posting anything. There are over 50,000 posts and it&amp;#39;s very likely your question has already been answered. Visit the IRC channel #cakephp at irc.freenode.net. The group is moderated to prevent spam, so please be patient if you are new member. </description>
  <language>en</language>
  <item>
  <title>Re: Behavior can create new records but fails to update.</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/afd9dbcd22c0691a?show_docid=afd9dbcd22c0691a</link>
  <description>
  Got it! &lt;br&gt; &lt;p&gt;I discovered that loading the existing values to overwrite was causing &lt;br&gt; the issue. If I just set the ID and only had the 2 fields I change it &lt;br&gt; worked. &lt;br&gt; &lt;p&gt;That points to... &lt;br&gt; Validation! &lt;br&gt; &lt;p&gt;By turning off the validation I am able to save all fields after &lt;br&gt; loading. &lt;br&gt; &lt;p&gt;This works but I dont know the name of the user I am banning. :(
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/afd9dbcd22c0691a?show_docid=afd9dbcd22c0691a</guid>
  <author>
  ollit...@gmail.com
  (Smelly_Eddie)
  </author>
  <pubDate>Fri, 05 十二月 2008 01:52:28 UT
</pubDate>
  </item>
  <item>
  <title>Re: Behavior can create new records but fails to update.</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/8319ac13b9d6a776?show_docid=8319ac13b9d6a776</link>
  <description>
  Thanks, but unfortunately the results are the same. No update query is &lt;br&gt; run. &lt;br&gt; &lt;p&gt;	$model-&amp;gt;id=$userID; &lt;br&gt; $data=$model-&amp;gt;read(); &lt;br&gt; debug($data); &lt;br&gt; //overwrite their password &lt;br&gt; $data[&#39;User&#39;][&#39;password&#39;]=&#39;Thi sUserViolatedTerms&#39;.date(&#39;dmY&#39; ); &lt;br&gt; //save new password effectively blocking them out. &lt;br&gt; //also save boolena field to lock
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/8319ac13b9d6a776?show_docid=8319ac13b9d6a776</guid>
  <author>
  ollit...@gmail.com
  (Smelly_Eddie)
  </author>
  <pubDate>Fri, 05 十二月 2008 01:29:51 UT
</pubDate>
  </item>
  <item>
  <title>Re: Problem with Phpcake</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/8032a4b2db532a98/ed2041a3522cadcd?show_docid=ed2041a3522cadcd</link>
  <description>
  hmmm... &lt;br&gt; &lt;p&gt;i think i had the problem same as with you. &lt;br&gt; &lt;p&gt;i tried by uploading new cakephp engine (zip version) into server, &lt;br&gt; then in cpanel i extracted the file. dont forget to delete old cakephp &lt;br&gt; engine before you upload a new one. &lt;br&gt; &lt;p&gt;sorry for not smart advice :p
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/8032a4b2db532a98/ed2041a3522cadcd?show_docid=ed2041a3522cadcd</guid>
  <author>
  orangerdigi...@gmail.com
  (ridwan arifandi)
  </author>
  <pubDate>Fri, 05 十二月 2008 01:01:27 UT
</pubDate>
  </item>
  <item>
  <title>Re: Behavior can create new records but fails to update.</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/cb4411e5cf815afc?show_docid=cb4411e5cf815afc</link>
  <description>
  try &lt;br&gt; &lt;p&gt;$model-&amp;gt;id = $foo[&#39;User&#39;][&#39;id&#39;] &lt;br&gt; $data = $model-&amp;gt;Read(); &lt;br&gt; &lt;p&gt;$data[&#39;User&#39;][&#39;...&#39;] = xxxx; &lt;br&gt; &lt;p&gt;then save
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/cb4411e5cf815afc?show_docid=cb4411e5cf815afc</guid>
  <author>
  orangerdigi...@gmail.com
  (ridwan arifandi)
  </author>
  <pubDate>Fri, 05 十二月 2008 00:57:22 UT
</pubDate>
  </item>
  <item>
  <title>Behavior can create new records but fails to update.</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/6a964936cc3bc6d3?show_docid=6a964936cc3bc6d3</link>
  <description>
  I have been going straight with this one for a few hours now and I&#39;m &lt;br&gt; stumped. &lt;br&gt; &lt;p&gt;Usually from a controller you can just call $this-&amp;gt;Model-&amp;gt;read, and &lt;br&gt; then $this-&amp;gt;Model-&amp;gt;save to update any values changed inbetween. &lt;br&gt; &lt;p&gt;When I try the same from my Behavior it fails to update the record. &lt;br&gt; If I eliminate the read and just make up some valued it will however
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/6a964936cc3bc6d3?show_docid=6a964936cc3bc6d3</guid>
  <author>
  ollit...@gmail.com
  (Smelly_Eddie)
  </author>
  <pubDate>Fri, 05 十二月 2008 00:23:36 UT
</pubDate>
  </item>
  <item>
  <title>Custom queries/sql in models/behaviors</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/524985698364ae1c/00ca1cf6246bdb0b?show_docid=00ca1cf6246bdb0b</link>
  <description>
  Ok in my current system (its a gaming league) I have packages. I will &lt;br&gt; use a Team package as an example. In this Team package I have a method &lt;br&gt; getTeamInfo() which calls out to external queries. I do this so I only &lt;br&gt; have to write a query once and can access its results through a method &lt;br&gt; call. I prefer this way instead of having to write the same query over
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/524985698364ae1c/00ca1cf6246bdb0b?show_docid=00ca1cf6246bdb0b</guid>
  <author>
  mileswjohn...@gmail.com
  (gearvOsh)
  </author>
  <pubDate>Thu, 04 十二月 2008 23:23:38 UT
</pubDate>
  </item>
  <item>
  <title>Re: Blank screen with errors set to 2</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/f578eabe18cc6aa4/e1c83e12d9450de9?show_docid=e1c83e12d9450de9</link>
  <description>
  If you&#39;re uploading your files to a server using some ftp &lt;br&gt; client, be sure to set binary mode (instead of ascii or &lt;br&gt; auto) for all files. &lt;br&gt; Best regards.
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/f578eabe18cc6aa4/e1c83e12d9450de9?show_docid=e1c83e12d9450de9</guid>
  <author>
  mfandr...@gmail.com
  (Marcelo Andrade)
  </author>
  <pubDate>Thu, 04 十二月 2008 21:17:21 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sanitize::html replacing newlines with literal \n</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/ad1967455ee6dd5b?show_docid=ad1967455ee6dd5b</link>
  <description>
  Thanks. Strange that your newlines were double backslashed. Your post put me &lt;br&gt; on the right track. I am using pre tags in my markup and didn&#39;t want to have &lt;br&gt; to go through all of my controllers looking for each instance of &lt;br&gt; Sanitize::clean, so I now have this as line 236 in sanitize.php: &lt;br&gt; &lt;p&gt;$data = str_replace(&#39;\n&#39;, &amp;quot;\n&amp;quot;, $data);
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/ad1967455ee6dd5b?show_docid=ad1967455ee6dd5b</guid>
  <author>
  ryan.mckil...@gmail.com
  (RyOnLife)
  </author>
  <pubDate>Thu, 04 十二月 2008 20:29:16 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sanitize::html replacing newlines with literal \n</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/8e80300f5d8e27aa?show_docid=8e80300f5d8e27aa</link>
  <description>
  If you read my post further up from today. I already posted the source &lt;br&gt; code that resolves your problem.
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/8e80300f5d8e27aa?show_docid=8e80300f5d8e27aa</guid>
  <author>
  nfoscar...@yahoo.com
  (Mathew)
  </author>
  <pubDate>Thu, 04 十二月 2008 20:07:07 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sanitize::html replacing newlines with literal \n</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/970faab75c907fa8?show_docid=970faab75c907fa8</link>
  <description>
  My bad. You&#39;re right. I just realized that I while I thought commenting that &lt;br&gt; line out in sanitize.php did the trick, it actually worked because I&#39;d &lt;br&gt; commented out the call to Sanitize::clean() in my controller. So it&#39;s not &lt;br&gt; Sanitize::html() that&#39;s the problem. &lt;br&gt; &lt;p&gt;Looks like I am back to square one... How can I prevent newlines being
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/970faab75c907fa8?show_docid=970faab75c907fa8</guid>
  <author>
  ryan.mckil...@gmail.com
  (RyOnLife)
  </author>
  <pubDate>Thu, 04 十二月 2008 20:05:47 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sanitize::html replacing newlines with literal \n</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/0753afbfb2da2152?show_docid=0753afbfb2da2152</link>
  <description>
  That function is not called from Sanitize::html()
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/0753afbfb2da2152?show_docid=0753afbfb2da2152</guid>
  <author>
  nfoscar...@yahoo.com
  (Mathew)
  </author>
  <pubDate>Thu, 04 十二月 2008 19:44:21 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sanitize::html replacing newlines with literal \n</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/5b4bc7d866f42d98?show_docid=5b4bc7d866f42d98</link>
  <description>
  1.2 RC3 &lt;br&gt; cake/libs/sanitize.php &lt;br&gt; line 147 &lt;br&gt; &lt;p&gt;-- &lt;br&gt; View this message in context: &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://n2.nabble.com/Sanitize%3A%3Ahtml-replacing-newlines-with-literal-%5Cn-tp1608411p1614961.html&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; Sent from the CakePHP mailing list archive at Nabble.com.
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/5b4bc7d866f42d98?show_docid=5b4bc7d866f42d98</guid>
  <author>
  ryan.mckil...@gmail.com
  (RyOnLife)
  </author>
  <pubDate>Thu, 04 十二月 2008 19:41:02 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sanitize::html replacing newlines with literal \n</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/39528d145a5fadf4?show_docid=39528d145a5fadf4</link>
  <description>
  What version of Cake are you using?
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/39528d145a5fadf4?show_docid=39528d145a5fadf4</guid>
  <author>
  nfoscar...@yahoo.com
  (Mathew)
  </author>
  <pubDate>Thu, 04 十二月 2008 19:35:19 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sanitize::html replacing newlines with literal \n</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/a7a968cb92b56518?show_docid=a7a968cb92b56518</link>
  <description>
  @Matthew: Yes it does. I commented it out and it fixed the problem.
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/a7a968cb92b56518?show_docid=a7a968cb92b56518</guid>
  <author>
  ryan.mckil...@gmail.com
  (RyOnLife)
  </author>
  <pubDate>Thu, 04 十二月 2008 19:29:56 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sqlite3</title>
  <link>http://groups.google.com.tw/group/cake-php/browse_thread/thread/4fee14fadd9ef9da/9dedada35fb36fa6?show_docid=9dedada35fb36fa6</link>
  <description>
  The driver can&#39;t handle queries with &#39;*&#39;. &lt;br&gt; &lt;p&gt;Like &amp;quot;SELECT * FROM users AS User&amp;quot; OR &amp;quot;SELECT User.* FROM users AS &lt;br&gt; User&amp;quot;. &lt;br&gt; &lt;p&gt;I found this when I was using the translate behavior. &lt;br&gt; &lt;p&gt;I still couldn&#39;t find the best way solve it. If some one have some &lt;br&gt; ideas they are welcome.
  </description>
  <guid isPermaLink="true">http://groups.google.com.tw/group/cake-php/browse_thread/thread/4fee14fadd9ef9da/9dedada35fb36fa6?show_docid=9dedada35fb36fa6</guid>
  <author>
  mario.ffra...@gmail.com
  (lightglitch)
  </author>
  <pubDate>Thu, 04 十二月 2008 19:04:18 UT
</pubDate>
  </item>
  </channel>
</rss>
