<?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>CakePHP Archives - The Code Developer</title>
	<atom:link href="https://www.thecodedeveloper.com/category/cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.thecodedeveloper.com/category/cakephp/</link>
	<description>The Code Developer is a Programming Blog.</description>
	<lastBuildDate>Thu, 07 Feb 2019 18:27:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Email Validation in CakePHP</title>
		<link>https://www.thecodedeveloper.com/email-validation-cakephp/</link>
					<comments>https://www.thecodedeveloper.com/email-validation-cakephp/#respond</comments>
		
		<dc:creator><![CDATA[Vikas Kumar]]></dc:creator>
		<pubDate>Sat, 21 Jan 2017 11:27:42 +0000</pubDate>
				<category><![CDATA[CakePHP]]></category>
		<guid isPermaLink="false">http://www.thecodedeveloper.com/?p=942</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="750" height="422" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-750x422.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" fetchpriority="high" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-750x422.jpg 750w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-442x249.jpg 442w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-768x432.jpg 768w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-1024x576.jpg 1024w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-360x202.jpg 360w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-1140x641.jpg 1140w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4.jpg 1920w" sizes="(max-width: 750px) 100vw, 750px" /></div>
<p>Email validation is an important part of any application and especially, when we use email as username in our application and you want to make sure that user enter a valid and unique email address. In CakePHP application we can define email validation rule in the Model like below:</p>
<p>The post <a href="https://www.thecodedeveloper.com/email-validation-cakephp/">Email Validation in CakePHP</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="750" height="422" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-750x422.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-750x422.jpg 750w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-442x249.jpg 442w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-768x432.jpg 768w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-1024x576.jpg 1024w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-360x202.jpg 360w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4-1140x641.jpg 1140w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp-4.jpg 1920w" sizes="(max-width: 750px) 100vw, 750px" /></div><p>Email validation is an important part of any application and especially, when we use email as username in our application and you want to make sure that user enter a valid and unique email address.</p>
<p>In <a href="https://cakephp.org/" target="_blank" rel="noopener">CakePHP</a> application we can define email validation rule in the Model like below:</p>
<pre class="brush: php; title: ; notranslate">

&lt;?php

class User extends AppModel {

	public $validate = array(
		'email' =&gt; array(
			'mustNotEmpty' =&gt; array(
				'rule' =&gt; 'notEmpty',
				'message' =&gt; 'Please enter a email.',
				'last' =&gt; true
			) ,
			'mustBeEmail' =&gt; array(
				'rule' =&gt; array(
					'email'
				) ,
				'message' =&gt; 'Please enter a valid email',
				'last' =&gt; true
			) ,
			'mustUnique' =&gt; array(
				'rule' =&gt; 'isUnique',
				'message' =&gt; 'This email is already exists.',
			)
		) ,
	);
}

?&gt;
</pre>
<p>The post <a href="https://www.thecodedeveloper.com/email-validation-cakephp/">Email Validation in CakePHP</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.thecodedeveloper.com/email-validation-cakephp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install CakePHP 3 using Composer</title>
		<link>https://www.thecodedeveloper.com/install-cakephp-3-using-composer/</link>
					<comments>https://www.thecodedeveloper.com/install-cakephp-3-using-composer/#comments</comments>
		
		<dc:creator><![CDATA[Vikas Kumar]]></dc:creator>
		<pubDate>Tue, 17 Jan 2017 17:41:58 +0000</pubDate>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Composer]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://www.thecodedeveloper.com/?p=867</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1920" height="1080" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/Install-CakePHP-3-Using-Composer.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install CakePHP 3 Using Composer" decoding="async" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/Install-CakePHP-3-Using-Composer.jpg 1920w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/Install-CakePHP-3-Using-Composer-442x249.jpg 442w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/Install-CakePHP-3-Using-Composer-768x432.jpg 768w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/Install-CakePHP-3-Using-Composer-1024x576.jpg 1024w" sizes="(max-width: 1920px) 100vw, 1920px" /></div>
<p>In this tutorial we will guide you how to Install CakePHP 3 Using Composer step by step. CakePHP uses Composer, a dependency management tool, as the officially supported method for installation. Through Composer it&#8217;s simple and easy to install CakePHP. Install CakePHP 3 Using Composer #1. Requirements Before Install CakePHP 3 make sure following requirements [&#8230;]</p>
<p>The post <a href="https://www.thecodedeveloper.com/install-cakephp-3-using-composer/">Install CakePHP 3 using Composer</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1920" height="1080" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/Install-CakePHP-3-Using-Composer.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install CakePHP 3 Using Composer" decoding="async" loading="lazy" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/Install-CakePHP-3-Using-Composer.jpg 1920w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/Install-CakePHP-3-Using-Composer-442x249.jpg 442w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/Install-CakePHP-3-Using-Composer-768x432.jpg 768w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/Install-CakePHP-3-Using-Composer-1024x576.jpg 1024w" sizes="auto, (max-width: 1920px) 100vw, 1920px" /></div><p>In this tutorial we will guide you how to <strong>Install CakePHP 3 Using Composer</strong> step by step. CakePHP uses Composer, a dependency management tool, as the officially supported method for installation. Through Composer it&#8217;s simple and easy to <strong>install CakePHP</strong>.</p>
<h2>Install CakePHP 3 Using Composer</h2>
<h3>#1. Requirements</h3>
<p>Before Install CakePHP 3 make sure following requirements are enabled and installed on your machine:</p>
<p>1) You must have PHP 5.5.9 or greater.<br />
2) mbstring extension and intl extension must be enabled. Make sure these lines are enable by removing the <strong>semicolon (;)</strong> from the start in <strong>php.ini</strong> file.</p>
<div class="bs-shortcode-alert alert alert-danger">
<p><strong>Note:</strong> If you installed latest version of XAMPP (7.2.1 or more), then you need to remove comment only from the below line in php.ini file.</p>
<p>extension=intl</p>
</div>
<pre class="brush: php; title: ; notranslate">
extension=php_intl.dll
extension=php_mbstring.dll
</pre>
<h3>#2. Install Composer</h3>
<p>The next thing you need to do Install Composer On Windows With XAMPP. This process will take another 5-10 minutes. Below is the step by step tutorial:</p>
<p><a href="https://www.thecodedeveloper.com/install-composer-windows-xampp/" target="_blank" rel="noopener">How to Install Composer On Windows With XAMPP</a></p>
<p>Once you successfully installed the Composer, then type composer and press enter in the terminal you will get following response like in the below image.</p>
<p><a href="https://www.thecodedeveloper.com/install-composer-windows-xampp/composer-terminal/" rel="attachment wp-att-811"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-811" src="https://www.thecodedeveloper.com/wp-content/uploads/2016/12/composer-terminal.png" alt="composer-terminal" width="697" height="386" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2016/12/composer-terminal.png 697w, https://www.thecodedeveloper.com/wp-content/uploads/2016/12/composer-terminal-442x245.png 442w" sizes="auto, (max-width: 697px) 100vw, 697px" /></a></p>
<p>Go to htdocs directory on your XAMPP server to Install CakePHP 3</p>
<p><a href="https://www.thecodedeveloper.com/install-cakephp-3-using-composer/htdocs_directroy-2/" rel="attachment wp-att-908"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-908" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/htdocs_directroy-1.png" alt="htdocs directroy" width="689" height="118" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/htdocs_directroy-1.png 689w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/htdocs_directroy-1-442x76.png 442w" sizes="auto, (max-width: 689px) 100vw, 689px" /></a></p>
<p>Now Run the following command to install CakePhp 3 using Composer on your server in cakeapp folder in this C:\xampp\htdocs\cakeapp\ path.</p>
<pre class="brush: php; title: ; notranslate">composer create-project --prefer-dist cakephp/app cakeapp</pre>
<p><a href="https://www.thecodedeveloper.com/install-cakephp-3-using-composer/run-composer-command/" rel="attachment wp-att-3158"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3158" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/run-composer-command.png" alt="run composer command" width="692" height="478" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/run-composer-command.png 692w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/run-composer-command-442x305.png 442w" sizes="auto, (max-width: 692px) 100vw, 692px" /></a></p>
<p>Once CakePhp 3 installation start then you will get following response like in the below image.</p>
<p><a href="https://www.thecodedeveloper.com/install-cakephp-3-using-composer/composer-_command/" rel="attachment wp-att-911"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-911" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/composer-_command.png" alt="composer command" width="692" height="486" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/composer-_command.png 692w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/composer-_command-442x310.png 442w" sizes="auto, (max-width: 692px) 100vw, 692px" /></a></p>
<p>Once you successfully installed CakePhp 3 on your machine then you will get following response like in the below image.</p>
<p><a href="https://www.thecodedeveloper.com/install-cakephp-3-using-composer/cakephp_installed/" rel="attachment wp-att-912"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-912" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp_installed.png" alt="cakephp installed" width="698" height="486" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp_installed.png 698w, https://www.thecodedeveloper.com/wp-content/uploads/2017/01/cakephp_installed-442x308.png 442w" sizes="auto, (max-width: 698px) 100vw, 698px" /></a></p>
<p>Finally it will ask you to set Folder Permission, so press Y to continue.</p>
<h3>#3. Configuration Database</h3>
<p>Configuration database details in config/app.php file.</p>
<pre class="brush: php; title: ; notranslate">
'Datasources' =&gt; &#x5B;
        'default' =&gt; &#x5B;
            'className' =&gt; 'Cake\Database\Connection',
            'driver' =&gt; 'Cake\Database\Driver\Mysql',
            'persistent' =&gt; false,
            'host' =&gt; 'localhost',
            'username' =&gt; 'root',
            'password' =&gt; '',
            'database' =&gt; 'cakeapp',
            'encoding' =&gt; 'utf8',
            'timezone' =&gt; 'UTC',
            'flags' =&gt; &#x5B;],
            'cacheMetadata' =&gt; true,
            'log' =&gt; false,
            'quoteIdentifiers' =&gt; false,
            'url' =&gt; env('DATABASE_URL', null),
        ],
    ]
</pre>
<p>The post <a href="https://www.thecodedeveloper.com/install-cakephp-3-using-composer/">Install CakePHP 3 using Composer</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.thecodedeveloper.com/install-cakephp-3-using-composer/feed/</wfw:commentRss>
			<slash:comments>10</slash:comments>
		
		
			</item>
	</channel>
</rss>
