<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>CakePHP Google Group</title>
  <link>http://groups.google.co.uk/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: changing model properties for recursive finds</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/9d67f4287685ca1b/22ea40d264db22d7?show_docid=22ea40d264db22d7</link>
  <description>
  Sounds like Containable is your answer - &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://book.cakephp.org/view/474/Containable&quot;&gt;[link]&lt;/a&gt;
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/9d67f4287685ca1b/22ea40d264db22d7?show_docid=22ea40d264db22d7</guid>
  <author>
  a...@amitvaria.com
  (Amit)
  </author>
  <pubDate>Mon, 11 Nov 2009 05:46:38 UT
</pubDate>
  </item>
  <item>
  <title>Re: To Sanitize or not? :: Public Opinion</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/e3597610c701eb11/557a4b68cadd568e?show_docid=557a4b68cadd568e</link>
  <description>
  CakePHP already makes any user input save in save functions (with the &lt;br&gt; exception of updateAll). &lt;br&gt; &lt;p&gt;My general rule of thumb, is not to filter user input on save, but on &lt;br&gt; display. This way you can see which users are trying malicious code &lt;br&gt; and take action accordingly.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/e3597610c701eb11/557a4b68cadd568e?show_docid=557a4b68cadd568e</guid>
  <author>
  waltherl...@gmail.com
  (Walther)
  </author>
  <pubDate>Mon, 11 Nov 2009 05:42:22 UT
</pubDate>
  </item>
  <item>
  <title>Re: Two user_id fields in a single table.</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/961462bd102c651d/63cda6cd902d9834?show_docid=63cda6cd902d9834</link>
  <description>
  In your model for activity you would need to define the foreign key. &lt;br&gt; In this example user_id(customer) = &amp;quot;customer_id&amp;quot; and user_id(Customer &lt;br&gt; Service Agenet) = &amp;quot;csa_id&amp;quot;: &lt;br&gt; &lt;p&gt;var $belongsTo = array( &lt;br&gt; &#39;Customer&#39; =&amp;gt; array ( &lt;br&gt; &#39;classname&#39; =&amp;gt; &#39;User&#39;, &lt;br&gt; &#39;foreignKey&#39; =&amp;gt; &#39;customer_id&#39; &lt;br&gt; ), &lt;br&gt; &#39;CSA&#39; =&amp;gt; array (
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/961462bd102c651d/63cda6cd902d9834?show_docid=63cda6cd902d9834</guid>
  <author>
  a...@amitvaria.com
  (Amit)
  </author>
  <pubDate>Mon, 11 Nov 2009 05:40:40 UT
</pubDate>
  </item>
  <item>
  <title>Re: render shared view file</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/e43c685a05275ac5/0c92371faf24c149?show_docid=0c92371faf24c149</link>
  <description>
  This: &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://bakery.cakephp.org/articles/view/generating-automatized-json-as-output&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; &lt;p&gt;is exactly what you are looking for.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/e43c685a05275ac5/0c92371faf24c149?show_docid=0c92371faf24c149</guid>
  <author>
  waltherl...@gmail.com
  (Walther)
  </author>
  <pubDate>Mon, 11 Nov 2009 05:40:08 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sort by count (and other aggregate fields)</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/9937b87f4686f4fb/2e4984bf16090db6?show_docid=2e4984bf16090db6</link>
  <description>
  You ARE using MySQL, you are just using cake&#39;s wrapper functions. If you &lt;br&gt; read about how to use GROUP BY, then you will see what you need to modify in &lt;br&gt; your find method to return the data that you want. &lt;br&gt; &lt;p&gt;CakePHP&#39;s automagic can only do so much for you without a basic &lt;br&gt; understanding of the database you are working with.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/9937b87f4686f4fb/2e4984bf16090db6?show_docid=2e4984bf16090db6</guid>
  <author>
  davidcr...@gmail.com
  (Dave)
  </author>
  <pubDate>Mon, 11 Nov 2009 05:26:54 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sort by count (and other aggregate fields)</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/9937b87f4686f4fb/754c5a6ea670ee33?show_docid=754c5a6ea670ee33</link>
  <description>
  A good way to do this is to add posts.comment_count field to your database and add counterache to the model like : &lt;br&gt; &lt;p&gt;&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://book.cakephp.org/view/816/counterCache-Cache-your-count&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; &lt;p&gt;Andras Kende
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/9937b87f4686f4fb/754c5a6ea670ee33?show_docid=754c5a6ea670ee33</guid>
  <author>
  and...@kende.com
  (Andras Kende)
  </author>
  <pubDate>Mon, 11 Nov 2009 05:26:40 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sort by count (and other aggregate fields)</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/9937b87f4686f4fb/64f2130b73fed4d6?show_docid=64f2130b73fed4d6</link>
  <description>
  But I&#39;m not using mysql, I am using the paginator helper&#39;s built in &lt;br&gt; functions...
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/9937b87f4686f4fb/64f2130b73fed4d6?show_docid=64f2130b73fed4d6</guid>
  <author>
  death...@gmail.com
  (death.au)
  </author>
  <pubDate>Mon, 11 Nov 2009 05:10:22 UT
</pubDate>
  </item>
  <item>
  <title>Re: Sort by count (and other aggregate fields)</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/9937b87f4686f4fb/68f9f0dfd631b2a5?show_docid=68f9f0dfd631b2a5</link>
  <description>
  In MySQL you use the GROUP BY keyword to accomplish this
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/9937b87f4686f4fb/68f9f0dfd631b2a5?show_docid=68f9f0dfd631b2a5</guid>
  <author>
  davidcr...@gmail.com
  (Dave)
  </author>
  <pubDate>Mon, 11 Nov 2009 05:00:53 UT
</pubDate>
  </item>
  <item>
  <title>Re: Serious Help Needed</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/a8bb3145f4a6ef9e/b77bd875703e403f?show_docid=b77bd875703e403f</link>
  <description>
  When you put it like that its so easy to understand. I read the &lt;br&gt; cookbook but your example is 100 times better and clearly explained &lt;br&gt; when you lay it out like that. thank you very much. that looks like &lt;br&gt; exactly what I need. &lt;br&gt; &lt;p&gt;Good looking out! &lt;br&gt; &lt;p&gt;Thanks, &lt;br&gt; &lt;p&gt;Dave
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/a8bb3145f4a6ef9e/b77bd875703e403f?show_docid=b77bd875703e403f</guid>
  <author>
  make.cake.b...@gmail.com
  (Dave)
  </author>
  <pubDate>Mon, 11 Nov 2009 04:54:19 UT
</pubDate>
  </item>
  <item>
  <title>Re: Serious Help Needed</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/a8bb3145f4a6ef9e/7aa3ba0980527578?show_docid=7aa3ba0980527578</link>
  <description>
  Take a look at the CakeBook - &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://book.cakephp.org/view/127/One-Rule-Per-Field&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; &lt;p&gt;var $validate = array( &lt;br&gt; &#39;email&#39; =&amp;gt; array( &lt;br&gt; &#39;rule&#39; =&amp;gt; array(&#39;email&#39;, &#39;isUnique&#39;), &lt;br&gt; &#39;required&#39; =&amp;gt; true, &lt;br&gt; &#39;allowEmpty&#39; =&amp;gt; false, &lt;br&gt; &#39;on&#39; =&amp;gt; &#39;create&#39;, &lt;br&gt; &#39;message&#39; =&amp;gt; &#39;Your Error Message&#39;
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/a8bb3145f4a6ef9e/7aa3ba0980527578?show_docid=7aa3ba0980527578</guid>
  <author>
  a...@amitvaria.com
  (Amit)
  </author>
  <pubDate>Mon, 11 Nov 2009 04:29:59 UT
</pubDate>
  </item>
  <item>
  <title>Two user_id fields in a single table.</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/961462bd102c651d/95b7ca61f13624ea?show_docid=95b7ca61f13624ea</link>
  <description>
  Hi guys, &lt;br&gt; &lt;p&gt;I need to know how do i keep two user_id fields in a single table in &lt;br&gt; CakePHP. For example: &lt;br&gt; &lt;p&gt;I have a &amp;quot;users&amp;quot; table. There are two type of users in this table. 1. &lt;br&gt; Customers, 2. Customer Service Agents. &lt;br&gt; I have another table &amp;quot;activity&amp;quot; which shall hold all activities &lt;br&gt; performed on a customer and who (Customer Service Agent) performed
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/961462bd102c651d/95b7ca61f13624ea?show_docid=95b7ca61f13624ea</guid>
  <author>
  madyeepakis...@gmail.com
  (Mohammad Raheel)
  </author>
  <pubDate>Fri, 11 Nov 2009 20:39:57 UT
</pubDate>
  </item>
  <item>
  <title>Re: Serious Help Needed</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/a8bb3145f4a6ef9e/f1de421a54234a7c?show_docid=f1de421a54234a7c</link>
  <description>
  You could omit the &#39;required&#39; =&amp;gt; true in the validation rules and keep &lt;br&gt; an &#39;allowEmpty&#39; =&amp;gt; false instead. This way upon sign up both fields &lt;br&gt; need to be filled in, but on changing, you don&#39;t need to submit both. &lt;br&gt; For the &#39;unique&#39; problem, you might have to check if the email is the &lt;br&gt; same as what is already saved, and if so, don&#39;t bother saving it.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/a8bb3145f4a6ef9e/f1de421a54234a7c?show_docid=f1de421a54234a7c</guid>
  <author>
  death...@gmail.com
  (death.au)
  </author>
  <pubDate>Mon, 11 Nov 2009 03:42:18 UT
</pubDate>
  </item>
  <item>
  <title>Serious Help Needed</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/a8bb3145f4a6ef9e/ba396fbd1ebdf210?show_docid=ba396fbd1ebdf210</link>
  <description>
  I cant figure out how to do this. &lt;br&gt; I have 2 fields, an email and a url, both are required and need to be &lt;br&gt; unique when a user wants to update thier info. &lt;br&gt; &lt;p&gt;If the user is only updating 1 field the other required will fail &lt;br&gt; because its required. If they enter in the email field their current &lt;br&gt; email because it says required it will come back invalid because its
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/a8bb3145f4a6ef9e/ba396fbd1ebdf210?show_docid=ba396fbd1ebdf210</guid>
  <author>
  make.cake.b...@gmail.com
  (Dave)
  </author>
  <pubDate>Mon, 11 Nov 2009 02:45:47 UT
</pubDate>
  </item>
  <item>
  <title>Re: render shared view file</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/e43c685a05275ac5/c7ac3f409af5392c?show_docid=c7ac3f409af5392c</link>
  <description>
  Don&#39;t know if my last post made it but I found a better solution &lt;br&gt; (since afterRender doesn&#39;t exist and I was changing the action &lt;br&gt; variable): &lt;br&gt; &lt;p&gt;function render($action = null, $layout = null, $file = null){ &lt;br&gt; if ($this-&amp;gt;RequestHandler-&amp;gt;ext == &#39;json&#39;) { &lt;br&gt; return parent::render($action, $layout, &#39;/share/json&#39;); //loads /app/
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/e43c685a05275ac5/c7ac3f409af5392c?show_docid=c7ac3f409af5392c</guid>
  <author>
  a...@amitvaria.com
  (Amit)
  </author>
  <pubDate>Mon, 11 Nov 2009 01:26:30 UT
</pubDate>
  </item>
  <item>
  <title>Re: render shared view file</title>
  <link>http://groups.google.co.uk/group/cake-php/browse_thread/thread/e43c685a05275ac5/869ae82d31d74b92?show_docid=869ae82d31d74b92</link>
  <description>
  Whoops there is no afterRender. Did a little thinking and here&#39;s a &lt;br&gt; better solution (put this in your app_controller.php): &lt;br&gt; &lt;p&gt;function render($action = null, $layout = null, $file = null) { &lt;br&gt; if ($this-&amp;gt;RequestHandler-&amp;gt;ext == &#39;json&#39;) { &lt;br&gt; return parent::render($action, $layout, &#39;/shared/
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/cake-php/browse_thread/thread/e43c685a05275ac5/869ae82d31d74b92?show_docid=869ae82d31d74b92</guid>
  <author>
  a...@amitvaria.com
  (Amit)
  </author>
  <pubDate>Mon, 11 Nov 2009 01:23:01 UT
</pubDate>
  </item>
  </channel>
</rss>
