<?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>alexyz &#187; CakePHP</title>
	<atom:link href="http://alexyz.com/category/php/cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexyz.com</link>
	<description>developer notes</description>
	<lastBuildDate>Tue, 13 Dec 2011 19:09:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>CakePHP Setting up your system to Bake</title>
		<link>http://alexyz.com/cakephp-setting-up-your-system-to-bake/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cakephp-setting-up-your-system-to-bake</link>
		<comments>http://alexyz.com/cakephp-setting-up-your-system-to-bake/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 20:10:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1195</guid>
		<description><![CDATA[http://i.justrealized.com/2009/02/16/how-to-run-xampps-php-cli-and-cakephp-console/ start baking: C:\xampp\htdocs\project\app&#62;&#8221;../cake/console/cake&#8221; bake]]></description>
			<content:encoded><![CDATA[<p><a href="http://i.justrealized.com/2009/02/16/how-to-run-xampps-php-cli-and-cakephp-console/" target="_blank">http://i.justrealized.com/2009/02/16/how-to-run-xampps-php-cli-and-cakephp-console/</a><br />
start baking:</p>
<p><strong>C:\xampp\htdocs\project\app&gt;&#8221;../cake/console/cake&#8221; bake</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/cakephp-setting-up-your-system-to-bake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting a new project with CakePHP</title>
		<link>http://alexyz.com/starting-a-new-project-with-cakephp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=starting-a-new-project-with-cakephp</link>
		<comments>http://alexyz.com/starting-a-new-project-with-cakephp/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 20:09:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1193</guid>
		<description><![CDATA[download the current release: cakephp.org unzip, copy/rename folder as desired check apache file permissions app/tmp &#8211; 0777 app/config core.php &#8211; change Security.salt to new value database.php.default &#8211; remove .default, and configure values according to your database done]]></description>
			<content:encoded><![CDATA[<p>download the current release:</p>
<p>cakephp.org</p>
<p>unzip, copy/rename folder as desired</p>
<p>check apache file permissions<br />
app/tmp &#8211; 0777</p>
<p>app/config<br />
core.php &#8211; change Security.salt to new value<br />
database.php.default &#8211; remove .default, and configure values according to your database</p>
<p>done</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/starting-a-new-project-with-cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP naming conventions</title>
		<link>http://alexyz.com/cakephp-naming-conventions/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cakephp-naming-conventions</link>
		<comments>http://alexyz.com/cakephp-naming-conventions/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 20:08:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=1191</guid>
		<description><![CDATA[URL will trigger controller example: http://appname.com/data_users in app/controllers: data_users_controller.php in there: class DataUsersController extends Controller { } this should be the same as the table it will reference: data_users in app/models: data_user.php class data_user extends AppModel { } in app/views/data_users: function.ctp]]></description>
			<content:encoded><![CDATA[<p>URL will trigger controller<br />
example:</p>
<p>http://appname.com/data_users</p>
<p>in app/controllers:<br />
data_users_controller.php<br />
in there:<br />
class DataUsersController extends Controller {<br />
}</p>
<p>this should be the same as the table it will reference:<br />
data_users</p>
<p>in app/models:<br />
data_user.php<br />
class data_user extends AppModel {<br />
}</p>
<p>in app/views/data_users:<br />
function.ctp</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/cakephp-naming-conventions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP Time Helper: how to use it in a view</title>
		<link>http://alexyz.com/cakephp-time-helper-how-to-use-it-in-a-view/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cakephp-time-helper-how-to-use-it-in-a-view</link>
		<comments>http://alexyz.com/cakephp-time-helper-how-to-use-it-in-a-view/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 13:30:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=77</guid>
		<description><![CDATA[First of all, in the controller, add it to the $helpers array: var $helpers = array(&#8216;Html&#8217;, &#8216;Form&#8217;, &#8216;Time&#8217;); Then in the corresponding view, call it like this: &#60;p&#62;Date Published: &#60;?=$time-&#62;nice($post['Post']['date']);?&#62;&#60;/p&#62; which effectively (in this case from the database in this example) turns this: 2010-01-02 21:54:00 into this: Sat, Jan 2nd 2010, 21:54 &#8212;- note: &#8212;- [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, in the controller, add it to the $helpers array:</p>
<p><span style="color: #ff0000;">var $helpers = array(&#8216;Html&#8217;, &#8216;Form&#8217;, &#8216;Time&#8217;);</span></p>
<p>Then in the corresponding view, call it like this:</p>
<p>&lt;p&gt;Date Published:<span style="color: #ff0000;"> &lt;?=$time-&gt;nice($post['Post']['date']);?&gt;</span>&lt;/p&gt;</p>
<p>which effectively (in this case from the database in this example) turns this: <strong>2010-01-02 21:54:00</strong></p>
<p>into this: <strong>Sat, Jan 2nd 2010, 21:54</strong></p>
<p><strong>&#8212;- note: &#8212;-<br />
</strong></p>
<p>without the <strong>Time </strong>helper we could of course do this specific thing with the plain &#8216;ol PHP date function this way:<strong><br />
</strong></p>
<p><span style="color: #ff0000;">&lt;?=date(&#8216;M jS Y, g:i a&#8217;,strtotime($post['Post']['date']));?&gt;</span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">&#8212;-</span><br />
</span></p>
<p><span style="color: #ff0000;">$post['Post']['date']</span> is the value of the object <strong><span style="color: #000000;">Time </span></strong>will beautify, in this case</p>
<p>sent by the following function in the controller:</p>
<p><span style="color: #ff0000;">function view($id = null) {</span></p>
<p style="padding-left: 30px;"><span style="color: #ff0000;">if (!$id) {</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;">$this-&gt;Session-&gt;setFlash(__(&#8216;Invalid Post.&#8217;, true));<br />
$this-&gt;redirect(array(&#8216;action&#8217;=&gt;&#8217;index&#8217;));</span></p>
<p style="padding-left: 30px;"><span style="color: #ff0000;">}<br />
$this-&gt;set(&#8216;post&#8217;, $this-&gt;Post-&gt;read(null, $id));</span></p>
<p><span style="color: #ff0000;">}</span></p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/cakephp-time-helper-how-to-use-it-in-a-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP debug</title>
		<link>http://alexyz.com/cakephp-debug/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cakephp-debug</link>
		<comments>http://alexyz.com/cakephp-debug/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 12:26:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=62</guid>
		<description><![CDATA[need to see inside that specified array? to be remembered: app/views/posts/view.ctp &#60;? debug($post); ?&#62; which will also display records from associated models!]]></description>
			<content:encoded><![CDATA[<p>need to see inside that specified array?</p>
<p>to be remembered:</p>
<p>app/views/posts/view.ctp</p>
<p><span style="color: #ff0000;">&lt;? debug($post); ?&gt;</span></p>
<p>which will also display records from associated models!</p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/cakephp-debug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP Setting up command line to bake</title>
		<link>http://alexyz.com/cakephp-setting-up-command-line-to-bake/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cakephp-setting-up-command-line-to-bake</link>
		<comments>http://alexyz.com/cakephp-setting-up-command-line-to-bake/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 15:34:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://alexyz.com/?p=11</guid>
		<description><![CDATA[http://i.justrealized.com/2009/02/16/how-to-run-xampps-php-cli-and-cakephp-console/ start baking: C:\xampp\htdocs\project\app&#62;&#8221;../cake/console/cake&#8221; bake]]></description>
			<content:encoded><![CDATA[<p><a href="http://i.justrealized.com/2009/02/16/how-to-run-xampps-php-cli-and-cakephp-console/" target="_blank">http://i.justrealized.com/2009/02/16/how-to-run-xampps-php-cli-and-cakephp-console/</a></p>
<p>start baking:</p>
<p><strong>C:\xampp\htdocs\project\app&gt;&#8221;../cake/console/cake&#8221; bake</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://alexyz.com/cakephp-setting-up-command-line-to-bake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

