<?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; deprecated</title>
	<atom:link href="http://cakebaker.42dh.com/tags/deprecated/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>Three new validation rules</title>
		<link>http://cakebaker.42dh.com/2008/05/21/three-new-validation-rules/</link>
		<comments>http://cakebaker.42dh.com/2008/05/21/three-new-validation-rules/#comments</comments>
		<pubDate>Wed, 21 May 2008 17:32:18 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[cakephp]]></category>
		<category><![CDATA[deprecated]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[validation]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=605</guid>
		<description><![CDATA[Recently, three new validation methods have been added to the core validation class and hence you can use three more validation rules in your models: boolean, inList, and time. boolean is self-explanatory: it validates whether a field contains a boolean value (i.e. 0, 1, &#8220;0&#8243;, &#8220;1&#8243;, false, or true). Example: var $validate = array('is_enabled' =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, three new validation methods have been added to the core validation class and hence you can use three more validation rules in your models: boolean, inList, and time. </p>
<p><strong>boolean</strong> is self-explanatory: it validates whether a field contains a boolean value (i.e. 0, 1, &#8220;0&#8243;, &#8220;1&#8243;, false, or true). Example:</p>
<pre>
var $validate = array('is_enabled' =&gt; array('rule' =&gt; array('boolean')));
</pre>
<p><strong>inList</strong> ensures that the respective field only contains a value from the defined array. It is case-sensitive, i.e. if you use the rule from the example below, then the value &#8220;Red&#8221; would be invalid.</p>
<pre>
var $validate = array('color' =&gt; array('rule' =&gt; array('inList', array('red', 'green', 'blue'))));
</pre>
<p><strong>time</strong> determines whether a field contains a valid time value. It supports both the 24 hour format (e.g. 08:10:10) and the 12 hour format (e.g. 8:10:10am). The minutes and seconds are optional in both cases.</p>
<pre>
var $validate = array('starttime' =&gt; array('rule' =&gt; array('time')));
</pre>
<p>Another recent change affected View::renderElement(): it has been deprecated in favor of View::element():</p>
<pre>
$this-&gt;renderElement('my_element', array('param1' =&gt; 'a value'));

becomes

$this-&gt;element('my_element', array('param1' =&gt; 'a value'));
</pre>
<p>I don&#8217;t know why View::renderElement() was deprecated and not View::element(), as I think the method name &#8220;renderElement&#8221; is more expressive than &#8220;element&#8221;.</p>
<p>Anyway, happy baking :)</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2008/05/21/three-new-validation-rules/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Deprecated stuff in CakePHP 1.2</title>
		<link>http://cakebaker.42dh.com/2008/01/10/deprecated-stuff-in-cakephp-12/</link>
		<comments>http://cakebaker.42dh.com/2008/01/10/deprecated-stuff-in-cakephp-12/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 17:39:46 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[cakephp]]></category>
		<category><![CDATA[deprecated]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/01/10/deprecated-stuff-in-cakephp-12/</guid>
		<description><![CDATA[Yesterday I got asked by Beth in a comment whether there is a list of deprecated stuff. As I am not aware of such a list I compiled one by searching for the term &#8220;deprecated&#8221; in the cake folder of CakePHP 1.2beta. You find the results below. Most of the deprecated stuff still works, but [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I got asked by Beth in a <a href="http://cakebaker.42dh.com/2008/01/02/upgrading-from-cakephp-12-pre-beta-to-the-beta-version/#comments">comment</a> whether there is a list of deprecated stuff. As I am not aware of such a list I compiled one by searching for the term &#8220;deprecated&#8221; in the cake folder of CakePHP 1.2beta. You find the results below. Most of the deprecated stuff still works, but some of it will show you a notice when used during development (when debug > 0). It is recommended to no longer use the deprecated stuff, as it is possible it will be removed in future releases. Ok, here we go:</p>
<p>On the console the command </p>
<pre>
cake acl initdb
</pre>
<p>has been replaced by </p>
<pre>
cake schema run create DbAcl
</pre>
<p>In basics.php all load functions have been replaced by App::import(): loadView(), loadModel(), loadController(), loadHelper(), loadPluginHelper(), loadComponent(), loadPluginComponent(), loadBehavior(), loadModels(), loadPluginModels(), and loadControllers(). </p>
<p>The function listClasses() has been replaced by Configure::listObjects(), and the implementations of setUri() and setUrl() have been moved to the dispacher and are now called uri() resp. getUrl().</p>
<p>The initialization of the cookie component has changed, it should be configured in the beforeFilter of the controller and therefore the initialize() method should no longer be used.</p>
<p>The implementation of cleanUpFields() has been moved from the controller to Model::deconstruct(). </p>
<p>In the model two methods are deprecated: loadInfo() has been replaced by Model::schema() and generateList() by Model::find(&#8216;list&#8217;). Also the parameter usage of validates() and invalidFields() has been deprecated, you have to set the $data property instead.</p>
<p>In the form helper the method submitImage() should no longer be used, instead the submit() method can be used.</p>
<p>As there is the form helper for creating form elements, all form-related methods in the HTML helper are deprecated: radio(), password(), textarea(), checkbox(), hidden(), input(), tagValue(), validate(), validateErrors(), and tagErrorMsg().</p>
<p>In the Javascript helper the $safe parameter for the codeBlock() method, plus the parameters $prefix, $postfix, $stringKeys, $quoteKeys, and $q for object() are deprecated.</p>
<p>In the helper class the method setFormTag() has been replaced by setEntity().</p>
<p>The properties $themeElement, $themeLayout, and $themePath are no longer needed in the theme class.</p>
<p>In the file class many methods have been renamed, and therefore the old names are deprecated: getFullPath(), getName(), fileName(), getExt(), getMd5(), getSize(), getOwner(), getGroup(), getChmod(), and getFolder().</p>
<p>The functionality of chmodr() and mkdirr() from the folder class is now handled by chmod() resp. mkdir().</p>
<p>In the router the routes for web services are deprecated: &#8220;/rest/&#8221;, &#8220;/rss/&#8221;, &#8220;/soap/&#8221;, &#8220;/xml/&#8221;, and &#8220;/xmlrpc/&#8221;. The same is true for the routes &#8220;/bare/&#8221; and &#8220;/ajax/&#8221;.</p>
<p>Last, but not least, the validation constants VALID_NOT_EMPTY, VALID_NUMBER, VALID_EMAIL, and VALID_YEAR are deprecated. </p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2008/01/10/deprecated-stuff-in-cakephp-12/feed/</wfw:commentRss>
		<slash:comments>55</slash:comments>
		</item>
	</channel>
</rss>

