<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Software and Technology Ramblings &#187; CakePHP</title>
	<atom:link href="http://blog.eastfacesoftware.com/category/cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.eastfacesoftware.com</link>
	<description>A blog of software design, architecture, and other unread ramblings.</description>
	<lastBuildDate>Thu, 09 Dec 2010 17:01:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Calling CakePHP Code from Other PHP Code</title>
		<link>http://blog.eastfacesoftware.com/2010/01/11/calling-cakephp-code-from-other-php-code/</link>
		<comments>http://blog.eastfacesoftware.com/2010/01/11/calling-cakephp-code-from-other-php-code/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 05:13:15 +0000</pubDate>
		<dc:creator>Doug Hays</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Non-CakePHP]]></category>

		<guid isPermaLink="false">http://blog.eastfacesoftware.com/?p=68</guid>
		<description><![CDATA[In order to call CakePHP from non-CakePHP code, we will copy index.php from /app/webroot and put it into our non-CakePHP codebase as cakephp.php.
Then, we&#8217;ll create a function requestCakePHP that requires the cakephp.php file:



Then, whenever we need to call for some Cake, we just call requestCake with the URL minus the hostname:

echo requestCakePHP("/webpages/view/2");

In the example above, [...]]]></description>
			<content:encoded><![CDATA[<p>In order to call CakePHP from non-CakePHP code, we will copy index.php from /app/webroot and put it into our non-CakePHP codebase as cakephp.php.</p>
<p>Then, we&#8217;ll create a function requestCakePHP that requires the cakephp.php file:<br />
<code><br />
<?<br />
function requestCakePHP($url)</p>
<p>{           </p>
<p>    // Set the url parameter for cakephp<br />
    $_GET['url'] = $url;</p>
<p>    require_once 'cakephp.php';</p>
<p>    // Fire up CakePHP and buffer results<br />
    ob_start();<br />
    $Dispatcher= new Dispatcher ();<br />
    $Dispatcher->dispatch($url);       </p>
<p>    return ob_get_clean();</p>
<p>}<br />
?><br />
</code></p>
<p>Then, whenever we need to call for some Cake, we just call requestCake with the URL minus the hostname:</p>
<p><code><br />
echo requestCakePHP("/webpages/view/2");<br />
</code></p>
<p>In the example above, I have a webpages controller, a view action and am viewing webpage #2.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eastfacesoftware.com/2010/01/11/calling-cakephp-code-from-other-php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing CakePHP 1.2 in a Subdirectory</title>
		<link>http://blog.eastfacesoftware.com/2009/03/17/installing-cakephp-12-in-a-subdirectory/</link>
		<comments>http://blog.eastfacesoftware.com/2009/03/17/installing-cakephp-12-in-a-subdirectory/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 22:02:56 +0000</pubDate>
		<dc:creator>Doug Hays</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://blog.eastfacesoftware.com/?p=46</guid>
		<description><![CDATA[I needed to test some CakePHP code on a client&#8217;s 1and1 server today, so I dropped my CakePHP app in a subdirectory (called agents2) on his site.  But, after doing so, I kept getting &#8220;Class &#8216;Configure&#8217; not found&#8221;.  Luckily, I stumbled upon this blog post over at kushaura.com which saved me.
The core issue was with [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to test some CakePHP code on a client&#8217;s 1and1 server today, so I dropped my CakePHP app in a subdirectory (called agents2) on his site.  But, after doing so, I kept getting &#8220;Class &#8216;Configure&#8217; not found&#8221;.  Luckily, I stumbled upon this blog post over at <a href="http://kushaura.com/blog/view/name:Installing-CakePHP-in-a-Subdirectory" target="_blank">kushaura.com</a> which saved me.</p>
<p><P>The core issue was with my root .htaccess file which needed to be changed to:</p>
<pre class="code">
      RewriteEngine on
      RewriteBase    /agents2/

      RewriteRule    ^$ app/webroot/    [L]

      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule (.*) app/webroot/$1 [L]
</pre>
<p>And that did the trick.</p>
<p>Thanks, Kushaura.com!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eastfacesoftware.com/2009/03/17/installing-cakephp-12-in-a-subdirectory/feed/</wfw:commentRss>
		<slash:comments>145</slash:comments>
		</item>
		<item>
		<title>Announcing Dingus CMS</title>
		<link>http://blog.eastfacesoftware.com/2008/04/29/announcing-dingus-cms/</link>
		<comments>http://blog.eastfacesoftware.com/2008/04/29/announcing-dingus-cms/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 17:20:35 +0000</pubDate>
		<dc:creator>Doug Hays</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.eastfacesoftware.com/2008/04/29/announcing-dingus-cms/</guid>
		<description><![CDATA[We have written a very basic CMS system (just like everyone else has) that we use on a handful of our clients&#8217; websites.  We wanted a CMS system that was:

Easy to deploy
Simple to re-skin when provided an HTML/CSS design
Search Engine Friendly
Easy enough that non-technical people could administer the content of the site
Lightweight enough so [...]]]></description>
			<content:encoded><![CDATA[<p>We have written a very basic CMS system (just like everyone else has) that we use on a handful of our clients&#8217; websites.  We wanted a CMS system that was:</p>
<ul>
<li>Easy to deploy</li>
<li>Simple to re-skin when provided an HTML/CSS design</li>
<li>Search Engine Friendly</li>
<li>Easy enough that non-technical people could administer the content of the site</li>
<li>Lightweight enough so that the system could be the foundation of a larger application or website</li>
<li>Built using CakePHP and MySQL</li>
</ul>
<p>After looking around the web for 5 minutes, and not finding anything, we decided to build it ourselves.  So, here it is, <strong>Dingus CMS</strong>.</p>
<p>In order to install and use Dingus CMS:</p>
<ol>
<li>You&#8217;ll need a basic PHP/MySQL/Apache environment. (Note: PHP 5 is recommended and Apache needs mod_rewrite)</li>
<li>Download the <a href="http://blog.eastfacesoftware.com/wp-content/uploads/2008/04/dingus-cms.tar.gz">source</a>.</li>
<li>Extract the source into the document root of your website.  Note that the app, cake, docs, etc&#8230; directories should be at the root of your site</li>
<li>Configure the database connection in <em>app/config/database.php</em></li>
<li>Run the SQL in <em>sql/dingus_cms_db_setup.sql</em></li>
<li>Go to http://localhost and you should be up and running!</li>
</ol>
<p>Note that Dingus CMS comes with built-in search and site map pages available at http://localhost/search.html and http://localhost/site-map.html</p>
<p>Finally, you may be wondering what a <strong>Dingus</strong> is.  You&#8217;ll have to stay tuned for a full explanation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eastfacesoftware.com/2008/04/29/announcing-dingus-cms/feed/</wfw:commentRss>
		<slash:comments>910</slash:comments>
		</item>
	</channel>
</rss>

