<?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: Using CakePHP &#8220;Parts&#8221; in Other Applications</title>
	<atom:link href="http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/</link>
	<description>Technology, Work, Life, Play, and everything else in between the ears of an Ian...</description>
	<lastBuildDate>Sat, 31 Jul 2010 13:05:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lawn Care Program a beautiful landscape for conservation</title>
		<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/comment-page-1/#comment-12974</link>
		<dc:creator>Lawn Care Program a beautiful landscape for conservation</dc:creator>
		<pubDate>Sat, 03 Jul 2010 22:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://farrworks.com/?p=136#comment-12974</guid>
		<description>&lt;strong&gt;Lawn Care Equipment For Really Easy Lawn Care...&lt;/strong&gt;

If you&#039;re looking for the best lawn, or even one that is good enough to look out as you can enjoy a beautiful day we have more difficulty reducing ......</description>
		<content:encoded><![CDATA[<p><strong>Lawn Care Equipment For Really Easy Lawn Care&#8230;</strong></p>
<p>If you&#8217;re looking for the best lawn, or even one that is good enough to look out as you can enjoy a beautiful day we have more difficulty reducing &#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gulumoump</title>
		<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/comment-page-1/#comment-10495</link>
		<dc:creator>Gulumoump</dc:creator>
		<pubDate>Fri, 05 Mar 2010 05:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://farrworks.com/?p=136#comment-10495</guid>
		<description>Sorry for choosing this to leave a offer for all about 505  natural prilosec alternatives 
maximum dose for prozac  &lt;a href=&quot;http://www.webjam.com/miksan&quot; rel=&quot;nofollow&quot;&gt;prozac side effects caffeine &lt;/a&gt; prozac purple green  &lt;a href=&quot;http://www.anobii.com/buyxenical&quot; rel=&quot;nofollow&quot;&gt;xenical new zealand &lt;/a&gt; i have xenical xenical hoffman la roche switzerland  &lt;a href=&quot;http://www.webjam.com/miksan&quot; rel=&quot;nofollow&quot;&gt;prilosec as house brand &lt;/a&gt; prozac drug interactions contraindications</description>
		<content:encoded><![CDATA[<p>Sorry for choosing this to leave a offer for all about 505  natural prilosec alternatives<br />
maximum dose for prozac  <a href="http://www.webjam.com/miksan" rel="nofollow">prozac side effects caffeine </a> prozac purple green  <a href="http://www.anobii.com/buyxenical" rel="nofollow">xenical new zealand </a> i have xenical xenical hoffman la roche switzerland  <a href="http://www.webjam.com/miksan" rel="nofollow">prilosec as house brand </a> prozac drug interactions contraindications</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tasteful Nues</title>
		<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/comment-page-1/#comment-8653</link>
		<dc:creator>Tasteful Nues</dc:creator>
		<pubDate>Sun, 22 Nov 2009 16:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://farrworks.com/?p=136#comment-8653</guid>
		<description>yoo.. thank you for this post )</description>
		<content:encoded><![CDATA[<p>yoo.. thank you for this post )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Farr</title>
		<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/comment-page-1/#comment-8635</link>
		<dc:creator>Ian Farr</dc:creator>
		<pubDate>Wed, 18 Nov 2009 14:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://farrworks.com/?p=136#comment-8635</guid>
		<description>Thanks for that reply danabel - that&#039;s great, and I am sure that it will help.

PS - I fixed a couple of typos you had - but other then that, I haven&#039;t changed anything else.

I also noticed that KFM was now trying to include CAKEPHP files - it didn&#039;t do that before...good idea on the wrapper for __autoload().

thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for that reply danabel &#8211; that&#8217;s great, and I am sure that it will help.</p>
<p>PS &#8211; I fixed a couple of typos you had &#8211; but other then that, I haven&#8217;t changed anything else.</p>
<p>I also noticed that KFM was now trying to include CAKEPHP files &#8211; it didn&#8217;t do that before&#8230;good idea on the wrapper for __autoload().</p>
<p>thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: danabel</title>
		<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/comment-page-1/#comment-8634</link>
		<dc:creator>danabel</dc:creator>
		<pubDate>Wed, 18 Nov 2009 12:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://farrworks.com/?p=136#comment-8634</guid>
		<description>I&#039;ve managed to find a workaround to get this method to work with KFM 1.4.3

In the kfm/api/config.php I needed to change &lt;code&gt;require_once $_SERVER[&#039;DOCUMENT_ROOT&#039;] . &#039;/cakephp.php&#039;;&lt;/code&gt; to &lt;code&gt;require_once $_SERVER[&#039;DOCUMENT_ROOT&#039;] . &#039;/webroot/cakephp.php&#039;;&lt;/code&gt; at the top.

Then in the kfm/initialise.php on line 17 i added the line &lt;code&gt;if(file_exists(KFM_BASE_PATH . &#039;classes/&#039; . $class_name . &#039;.php&#039;))&lt;/code&gt; giving the function: 
&lt;code&gt;
if(!function_exists(&#039;__autoload&#039;)){
	function __autoload($class_name) {
		if(file_exists(KFM_BASE_PATH . &#039;classes/&#039; . $class_name . &#039;.php&#039;))
			require_once KFM_BASE_PATH . &#039;classes/&#039; . $class_name . &#039;.php&#039;;
	}
}
&lt;/code&gt;
It looks like KFM is trying to include files for CakePHP classes, this just checks if the class file exists in KFM before including it.

Hope this helps someone.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve managed to find a workaround to get this method to work with KFM 1.4.3</p>
<p>In the kfm/api/config.php I needed to change</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">require_once $_SERVER['DOCUMENT_ROOT'] . '/cakephp.php';</div></div>
<p>to</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">require_once $_SERVER['DOCUMENT_ROOT'] . '/webroot/cakephp.php';</div></div>
<p>at the top.</p>
<p>Then in the kfm/initialise.php on line 17 i added the line</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">if(file_exists(KFM_BASE_PATH . 'classes/' . $class_name . '.php'))</div></div>
<p>giving the function:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">if(!function_exists('__autoload')){<br />
&nbsp; &nbsp; function __autoload($class_name) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(file_exists(KFM_BASE_PATH . 'classes/' . $class_name . '.php'))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; require_once KFM_BASE_PATH . 'classes/' . $class_name . '.php';<br />
&nbsp; &nbsp; }<br />
}</div></div>
<p>It looks like KFM is trying to include files for CakePHP classes, this just checks if the class file exists in KFM before including it.</p>
<p>Hope this helps someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bainco</title>
		<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/comment-page-1/#comment-8604</link>
		<dc:creator>bainco</dc:creator>
		<pubDate>Mon, 09 Nov 2009 15:53:23 +0000</pubDate>
		<guid isPermaLink="false">http://farrworks.com/?p=136#comment-8604</guid>
		<description>Thanks a lot for that! I&#039;ve been trying to access the cake session from the webroot for a while but couldn’t find out how. It really helped me!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for that! I&#8217;ve been trying to access the cake session from the webroot for a while but couldn’t find out how. It really helped me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Farr</title>
		<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/comment-page-1/#comment-8567</link>
		<dc:creator>Ian Farr</dc:creator>
		<pubDate>Fri, 30 Oct 2009 13:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://farrworks.com/?p=136#comment-8567</guid>
		<description>Thanks Malcolm for the CakePHP 1.1 update.

@kyle, yes, I can confirm that this is happening to me also...and I also noticed that KFM 1.4.3 has other issues, more issues that it&#039;s previous version, so I rolled back.

I will be running more tests to see if I can get things figured out, but I am also working on integrating tinybrowser and cake, as I really like the minimalist approach that tinybrowser is taking, and it&#039;s progressing nicely.</description>
		<content:encoded><![CDATA[<p>Thanks Malcolm for the CakePHP 1.1 update.</p>
<p>@kyle, yes, I can confirm that this is happening to me also&#8230;and I also noticed that KFM 1.4.3 has other issues, more issues that it&#8217;s previous version, so I rolled back.</p>
<p>I will be running more tests to see if I can get things figured out, but I am also working on integrating tinybrowser and cake, as I really like the minimalist approach that tinybrowser is taking, and it&#8217;s progressing nicely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Robinson Young</title>
		<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/comment-page-1/#comment-8565</link>
		<dc:creator>Kyle Robinson Young</dc:creator>
		<pubDate>Fri, 30 Oct 2009 05:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://farrworks.com/?p=136#comment-8565</guid>
		<description>Just tried this trick using CakePHP 1.2.5 and KFM 1.4.3 and it failed. KFM will fail trying to load Cake&#039;s classes dynamically from its own classes folder. Here is the error message:

Warning: require_once(/home/kry/public_html/app/webroot/kfm/classes/Set.php) [function.require-once]: failed to open stream: No such file or directory in /home/kry/public_html/2009/app/webroot/kfm/initialise.php on line 17

I haven&#039;t found the &quot;right&quot; solution yet but it looks like a conflict with the __autoload function between the two applications.</description>
		<content:encoded><![CDATA[<p>Just tried this trick using CakePHP 1.2.5 and KFM 1.4.3 and it failed. KFM will fail trying to load Cake&#8217;s classes dynamically from its own classes folder. Here is the error message:</p>
<p>Warning: require_once(/home/kry/public_html/app/webroot/kfm/classes/Set.php) [function.require-once]: failed to open stream: No such file or directory in /home/kry/public_html/2009/app/webroot/kfm/initialise.php on line 17</p>
<p>I haven&#8217;t found the &#8220;right&#8221; solution yet but it looks like a conflict with the __autoload function between the two applications.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm Patterson</title>
		<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/comment-page-1/#comment-4864</link>
		<dc:creator>Malcolm Patterson</dc:creator>
		<pubDate>Fri, 12 Jun 2009 20:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://farrworks.com/?p=136#comment-4864</guid>
		<description>Thanks for the helpful trick.  Had to alter it a bit to work with CakePHP 1.1 like so:

change:

App::import(&#039;Component&#039;, &#039;SiteAuth&#039;);
App::import(&#039;Controller&#039;, &#039;AppController&#039;);
App::import(&#039;Helper&#039;, &#039;Session&#039;);

$siteAuth-&gt;Session = new SessionHelper();

to:

loadComponent( &#039;SiteAuth&#039; );
loadController( &#039;AppController&#039; );
loadComponent( &#039;Session&#039; );

$siteAuth-&gt;Session = new SessionComponent();

Thought this might help some one else out that is stuck in the CakePHP 1.1 era :)</description>
		<content:encoded><![CDATA[<p>Thanks for the helpful trick.  Had to alter it a bit to work with CakePHP 1.1 like so:</p>
<p>change:</p>
<p>App::import(&#8216;Component&#8217;, &#8216;SiteAuth&#8217;);<br />
App::import(&#8216;Controller&#8217;, &#8216;AppController&#8217;);<br />
App::import(&#8216;Helper&#8217;, &#8216;Session&#8217;);</p>
<p>$siteAuth-&gt;Session = new SessionHelper();</p>
<p>to:</p>
<p>loadComponent( &#8216;SiteAuth&#8217; );<br />
loadController( &#8216;AppController&#8217; );<br />
loadComponent( &#8216;Session&#8217; );</p>
<p>$siteAuth-&gt;Session = new SessionComponent();</p>
<p>Thought this might help some one else out that is stuck in the CakePHP 1.1 era <img src='http://farrworks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cepheus</title>
		<link>http://farrworks.com/2009/02/using-cakephp-components-in-other-applications/comment-page-1/#comment-2558</link>
		<dc:creator>Cepheus</dc:creator>
		<pubDate>Wed, 29 Apr 2009 07:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://farrworks.com/?p=136#comment-2558</guid>
		<description>Great tutorial, worked like a charm for me.</description>
		<content:encoded><![CDATA[<p>Great tutorial, worked like a charm for me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
