<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com.tw/group/cake-php</id>
  <title type="text">CakePHP Google Group</title>
  <subtitle type="text">
  Search this group before posting anything. There are over 50,000 posts and it&#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.
  </subtitle>
  <link href="/group/cake-php/feed/atom_v1_0_msgs.xml" rel="self" title="CakePHP feed"/>
  <updated>2008-12-05T01:29:51Z</updated>
  <generator uri="http://groups.google.com.tw" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Smelly_Eddie</name>
  <email>ollit...@gmail.com</email>
  </author>
  <updated>2008-12-05T01:29:51Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/8319ac13b9d6a776?show_docid=8319ac13b9d6a776</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/8319ac13b9d6a776?show_docid=8319ac13b9d6a776"/>
  <title type="text">Re: Behavior can create new records but fails to update.</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>ridwan arifandi</name>
  <email>orangerdigi...@gmail.com</email>
  </author>
  <updated>2008-12-05T01:01:27Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/8032a4b2db532a98/ed2041a3522cadcd?show_docid=ed2041a3522cadcd</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/8032a4b2db532a98/ed2041a3522cadcd?show_docid=ed2041a3522cadcd"/>
  <title type="text">Re: Problem with Phpcake</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>ridwan arifandi</name>
  <email>orangerdigi...@gmail.com</email>
  </author>
  <updated>2008-12-05T00:57:22Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/cb4411e5cf815afc?show_docid=cb4411e5cf815afc</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/cb4411e5cf815afc?show_docid=cb4411e5cf815afc"/>
  <title type="text">Re: Behavior can create new records but fails to update.</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Smelly_Eddie</name>
  <email>ollit...@gmail.com</email>
  </author>
  <updated>2008-12-05T00:23:36Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/6a964936cc3bc6d3?show_docid=6a964936cc3bc6d3</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/8b17fa7a3bdf645b/6a964936cc3bc6d3?show_docid=6a964936cc3bc6d3"/>
  <title type="text">Behavior can create new records but fails to update.</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>gearvOsh</name>
  <email>mileswjohn...@gmail.com</email>
  </author>
  <updated>2008-12-04T23:23:38Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/524985698364ae1c/00ca1cf6246bdb0b?show_docid=00ca1cf6246bdb0b</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/524985698364ae1c/00ca1cf6246bdb0b?show_docid=00ca1cf6246bdb0b"/>
  <title type="text">Custom queries/sql in models/behaviors</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Marcelo Andrade</name>
  <email>mfandr...@gmail.com</email>
  </author>
  <updated>2008-12-04T21:17:21Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/f578eabe18cc6aa4/e1c83e12d9450de9?show_docid=e1c83e12d9450de9</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/f578eabe18cc6aa4/e1c83e12d9450de9?show_docid=e1c83e12d9450de9"/>
  <title type="text">Re: Blank screen with errors set to 2</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>RyOnLife</name>
  <email>ryan.mckil...@gmail.com</email>
  </author>
  <updated>2008-12-04T20:29:16Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/ad1967455ee6dd5b?show_docid=ad1967455ee6dd5b</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/ad1967455ee6dd5b?show_docid=ad1967455ee6dd5b"/>
  <title type="text">Re: Sanitize::html replacing newlines with literal \n</title>
  <summary type="html" xml:space="preserve">
  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);
  </summary>
  </entry>
  <entry>
  <author>
  <name>Mathew</name>
  <email>nfoscar...@yahoo.com</email>
  </author>
  <updated>2008-12-04T20:07:07Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/8e80300f5d8e27aa?show_docid=8e80300f5d8e27aa</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/8e80300f5d8e27aa?show_docid=8e80300f5d8e27aa"/>
  <title type="text">Re: Sanitize::html replacing newlines with literal \n</title>
  <summary type="html" xml:space="preserve">
  If you read my post further up from today. I already posted the source &lt;br&gt; code that resolves your problem.
  </summary>
  </entry>
  <entry>
  <author>
  <name>RyOnLife</name>
  <email>ryan.mckil...@gmail.com</email>
  </author>
  <updated>2008-12-04T20:05:47Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/970faab75c907fa8?show_docid=970faab75c907fa8</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/970faab75c907fa8?show_docid=970faab75c907fa8"/>
  <title type="text">Re: Sanitize::html replacing newlines with literal \n</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Mathew</name>
  <email>nfoscar...@yahoo.com</email>
  </author>
  <updated>2008-12-04T19:44:21Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/0753afbfb2da2152?show_docid=0753afbfb2da2152</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/0753afbfb2da2152?show_docid=0753afbfb2da2152"/>
  <title type="text">Re: Sanitize::html replacing newlines with literal \n</title>
  <summary type="html" xml:space="preserve">
  That function is not called from Sanitize::html()
  </summary>
  </entry>
  <entry>
  <author>
  <name>RyOnLife</name>
  <email>ryan.mckil...@gmail.com</email>
  </author>
  <updated>2008-12-04T19:41:02Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/5b4bc7d866f42d98?show_docid=5b4bc7d866f42d98</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/5b4bc7d866f42d98?show_docid=5b4bc7d866f42d98"/>
  <title type="text">Re: Sanitize::html replacing newlines with literal \n</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Mathew</name>
  <email>nfoscar...@yahoo.com</email>
  </author>
  <updated>2008-12-04T19:35:19Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/39528d145a5fadf4?show_docid=39528d145a5fadf4</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/39528d145a5fadf4?show_docid=39528d145a5fadf4"/>
  <title type="text">Re: Sanitize::html replacing newlines with literal \n</title>
  <summary type="html" xml:space="preserve">
  What version of Cake are you using?
  </summary>
  </entry>
  <entry>
  <author>
  <name>RyOnLife</name>
  <email>ryan.mckil...@gmail.com</email>
  </author>
  <updated>2008-12-04T19:29:56Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/a7a968cb92b56518?show_docid=a7a968cb92b56518</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/1d829b95f9b5d7b6/a7a968cb92b56518?show_docid=a7a968cb92b56518"/>
  <title type="text">Re: Sanitize::html replacing newlines with literal \n</title>
  <summary type="html" xml:space="preserve">
  @Matthew: Yes it does. I commented it out and it fixed the problem.
  </summary>
  </entry>
  <entry>
  <author>
  <name>lightglitch</name>
  <email>mario.ffra...@gmail.com</email>
  </author>
  <updated>2008-12-04T19:04:18Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/4fee14fadd9ef9da/9dedada35fb36fa6?show_docid=9dedada35fb36fa6</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/4fee14fadd9ef9da/9dedada35fb36fa6?show_docid=9dedada35fb36fa6"/>
  <title type="text">Re: Sqlite3</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Antônio Marco</name>
  <email>idelfonso.alme...@gmail.com</email>
  </author>
  <updated>2008-12-04T17:12:34Z</updated>
  <id>http://groups.google.com.tw/group/cake-php/browse_thread/thread/3507ecd98cf3efd5/51f3dcbb98000af3?show_docid=51f3dcbb98000af3</id>
  <link href="http://groups.google.com.tw/group/cake-php/browse_thread/thread/3507ecd98cf3efd5/51f3dcbb98000af3?show_docid=51f3dcbb98000af3"/>
  <title type="text">Re: How should I associate these tables?</title>
  <summary type="html" xml:space="preserve">
  No, I can&#39;t move all my tables to same schema. &lt;br&gt; &lt;p&gt;But thanks anyway.
  </summary>
  </entry>
</feed>
