<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Extending CakePHP&#8217;s core components</title>
	<atom:link href="http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:12:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rebuild Project Notes #5 @ Robot Minds of Robot Slaves</title>
		<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/comment-page-1/#comment-157007</link>
		<dc:creator>Rebuild Project Notes #5 @ Robot Minds of Robot Slaves</dc:creator>
		<pubDate>Fri, 16 Apr 2010 04:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1248#comment-157007</guid>
		<description>[...] is an interesting article on how you can extend core CakePHP components. I am going to be using that author&#8217;s recommendations in my effort. The gist of his advice is [...]</description>
		<content:encoded><![CDATA[<p>[...] is an interesting article on how you can extend core CakePHP components. I am going to be using that author&#8217;s recommendations in my effort. The gist of his advice is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rebuild Project Notes #2 @ Robot Minds of Robot Slaves</title>
		<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/comment-page-1/#comment-156528</link>
		<dc:creator>Rebuild Project Notes #2 @ Robot Minds of Robot Slaves</dc:creator>
		<pubDate>Tue, 13 Apr 2010 04:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1248#comment-156528</guid>
		<description>[...] Info: How to extend the CakePHP AuthComponent. More on extending AuthComponent I found the Joomla boilerplate over here. no comments yet.&#171; Rebuild Project Notes #1          [...]</description>
		<content:encoded><![CDATA[<p>[...] Info: How to extend the CakePHP AuthComponent. More on extending AuthComponent I found the Joomla boilerplate over here. no comments yet.&laquo; Rebuild Project Notes #1          [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/comment-page-1/#comment-147622</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Sun, 21 Feb 2010 15:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1248#comment-147622</guid>
		<description>@daniel: Can you post the relevant code? And which CakePHP version do you use?</description>
		<content:encoded><![CDATA[<p>@daniel: Can you post the relevant code? And which CakePHP version do you use?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniel</title>
		<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/comment-page-1/#comment-147246</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Thu, 18 Feb 2010 22:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1248#comment-147246</guid>
		<description>Hm this isn&#039;t working for me.  When i call a method by the old name, I get an error:

Fatal error: Call to undefined method stdClass::send()</description>
		<content:encoded><![CDATA[<p>Hm this isn&#8217;t working for me.  When i call a method by the old name, I get an error:</p>
<p>Fatal error: Call to undefined method stdClass::send()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/comment-page-1/#comment-137636</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 05 Oct 2009 15:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1248#comment-137636</guid>
		<description>@Teh Treag: Thanks for sharing this alternative approach! 

Personally, I prefer to handle it in the controller, as I think a component shouldn&#039;t care about the name under which it will be available in a controller. That&#039;s the responsibility of the controller. But in the end it is probably just a matter of taste.</description>
		<content:encoded><![CDATA[<p>@Teh Treag: Thanks for sharing this alternative approach! </p>
<p>Personally, I prefer to handle it in the controller, as I think a component shouldn&#8217;t care about the name under which it will be available in a controller. That&#8217;s the responsibility of the controller. But in the end it is probably just a matter of taste.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teh Treag</title>
		<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/comment-page-1/#comment-137633</link>
		<dc:creator>Teh Treag</dc:creator>
		<pubDate>Mon, 05 Oct 2009 13:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1248#comment-137633</guid>
		<description>Since AD7six pointed it out to me, I prefer to handle it in the class, instead of in the controller.

&lt;code&gt;
// app/controllers/components/my_request_handler.php
function initialize(&amp;$Controller, $config = array()) {
    $this-&gt;settings = array_merge($this-&gt;settings, $config);
    $this-&gt;Controller =&amp; $Controller;
    $Controller-&gt;RequestHandler =&amp; $this;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Since AD7six pointed it out to me, I prefer to handle it in the class, instead of in the controller.</p>
<pre><code>// app/controllers/components/my_request_handler.php
function initialize(&amp;$Controller, $config = array()) {
    $this-&gt;settings = array_merge($this-&gt;settings, $config);
    $this-&gt;Controller =&amp; $Controller;
    $Controller-&gt;RequestHandler =&amp; $this;
}</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/comment-page-1/#comment-136204</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 11 Sep 2009 15:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1248#comment-136204</guid>
		<description>@Nik: Thanks for your comment!

Well, this approach doesn&#039;t work for helpers, because they are created later...  However, in an &lt;a href=&quot;http://cakebaker.42dh.com/2008/11/07/an-idea-for-hacking-core-helpers&quot; rel=&quot;nofollow&quot;&gt;earlier article&lt;/a&gt; I described a possible idea for how you can &quot;hack&quot; core helpers. 

Hope that helps!</description>
		<content:encoded><![CDATA[<p>@Nik: Thanks for your comment!</p>
<p>Well, this approach doesn&#8217;t work for helpers, because they are created later&#8230;  However, in an <a href="http://cakebaker.42dh.com/2008/11/07/an-idea-for-hacking-core-helpers" rel="nofollow">earlier article</a> I described a possible idea for how you can &#8220;hack&#8221; core helpers. </p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik Chankov</title>
		<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/comment-page-1/#comment-136009</link>
		<dc:creator>Nik Chankov</dc:creator>
		<pubDate>Thu, 10 Sep 2009 17:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1248#comment-136009</guid>
		<description>I was searched for such functionality recently, but for some reason I&#039;ve discontinued the research. One of the possible additions is to extend the html class so it could handle links depending from permissions. Let&#039;s say if user has right to access Edit window the link to be visible, if not just disable it, or completely hide.

Thanks for the hint Daniel.</description>
		<content:encoded><![CDATA[<p>I was searched for such functionality recently, but for some reason I&#8217;ve discontinued the research. One of the possible additions is to extend the html class so it could handle links depending from permissions. Let&#8217;s say if user has right to access Edit window the link to be visible, if not just disable it, or completely hide.</p>
<p>Thanks for the hint Daniel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/comment-page-1/#comment-136005</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 10 Sep 2009 14:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1248#comment-136005</guid>
		<description>@John: Thanks for your comment and I&#039;m glad to hear it is useful for you!</description>
		<content:encoded><![CDATA[<p>@John: Thanks for your comment and I&#8217;m glad to hear it is useful for you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://cakebaker.42dh.com/2009/09/08/extending-cakephps-core-components/comment-page-1/#comment-135917</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 08 Sep 2009 14:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1248#comment-135917</guid>
		<description>That is so cool... there are so many possibilities. But the best part - like you say - is you can just use it in the normal way.</description>
		<content:encoded><![CDATA[<p>That is so cool&#8230; there are so many possibilities. But the best part &#8211; like you say &#8211; is you can just use it in the normal way.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

