<?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>cakebaker &#187; warning</title>
	<atom:link href="http://cakebaker.42dh.com/tags/warning/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 20 Dec 2011 15:29:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Deprecation warnings when using an &#8220;old&#8221; core.php</title>
		<link>http://cakebaker.42dh.com/2007/10/09/deprecation-warnings-when-using-an-old-corephp/</link>
		<comments>http://cakebaker.42dh.com/2007/10/09/deprecation-warnings-when-using-an-old-corephp/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 09:32:04 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[cakephp]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/10/09/deprecation-warnings-when-using-an-old-corephp/</guid>
		<description><![CDATA[Today I wanted to work on a project I baked some time ago. As I requested the respective url in my browser I got two warnings: Warning: Deprecated: Use Configure::write('debug', 2); in /home/dho/projects/cake_1.2.x.x/cake/libs/configure.php on line 559 Warning (512): Deprecated: Use Router::parseExtensions(); [CORE/cake/libs/configure.php, line 567] As I didn&#8217;t understood why those warnings appeared and how to [...]]]></description>
			<content:encoded><![CDATA[<p>Today I wanted to work on a project I baked some time ago. As I requested the respective url in my browser I got two warnings:</p>
<pre>
Warning: Deprecated: Use Configure::write('debug', 2); in
/home/dho/projects/cake_1.2.x.x/cake/libs/configure.php on line 559

Warning (512): Deprecated: Use Router::parseExtensions(); [CORE/cake/libs/configure.php, line 567]
</pre>
<p>As I didn&#8217;t understood why those warnings appeared and how to make them disappear &#8212; maybe I am simply too stupid ;-) &#8212; I had a look at the source of the configure.php file. And there I saw it checks whether some constants from core.php are defined, and if that is the case a warning is triggered. </p>
<p>So I had to replace in app/config/core.php</p>
<pre>
define('DEBUG', 2);
</pre>
<p>with </p>
<pre>
Configure::write('debug', 2);
</pre>
<p>Plus I had to remove the following entry:</p>
<pre>
define('WEBSERVICES', 'off');
</pre>
<p>You could also replace this entry with </p>
<pre>
Configure::write('Routing.webservices', 'off');
</pre>
<p>But this is deprecated, too, even though no warning is displayed.</p>
<p>And if you have defined the CAKE_ADMIN constant (which is by default commented out), you have to replace</p>
<pre>
define('CAKE_ADMIN', 'admin');
</pre>
<p>with</p>
<pre>
Configure::write('Routing.admin', 'admin');
</pre>
<p>With those changes the deprecation warnings should disappear.</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2007/10/09/deprecation-warnings-when-using-an-old-corephp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

