<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ahsan's Laboratory &#187; CakePhp</title>
	<atom:link href="http://ahsanity.wordpress.com/category/cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://ahsanity.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sun, 25 May 2008 20:26:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='ahsanity.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/79e2ea41a7ad31df3f77a51e1644372a?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Ahsan's Laboratory &#187; CakePhp</title>
		<link>http://ahsanity.wordpress.com</link>
	</image>
			<item>
		<title>Making The Blog Tutorial Run on CakePHP 1.2</title>
		<link>http://ahsanity.wordpress.com/2007/08/31/making-the-blog-tutorial-run-on-cakephp-12/</link>
		<comments>http://ahsanity.wordpress.com/2007/08/31/making-the-blog-tutorial-run-on-cakephp-12/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 16:41:30 +0000</pubDate>
		<dc:creator>Ahsan</dc:creator>
				<category><![CDATA[CakePHP 1.2]]></category>
		<category><![CDATA[CakePhp]]></category>
		<category><![CDATA[The Blog Tutorial]]></category>

		<guid isPermaLink="false">http://ahsanity.wordpress.com/2007/08/31/making-the-blog-tutorial-run-on-cakephp-12/</guid>
		<description><![CDATA[If you have ever tried to learn cake, the chances are that you have already gone through the CakePHP Blog Tutorial found in the manual. It in an excellent read to get acquainted with the cake way. But unfortunately, the Blog Tutorial only runs fine in CakePHP 1.1. If you try to run the code [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahsanity.wordpress.com&blog=379099&post=37&subd=ahsanity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you have ever tried to learn cake, the chances are that you have already gone through the <a href="http://manual.cakephp.org/appendix/blog_tutorial">CakePHP Blog Tutorial</a> found in the manual. It in an excellent read to get acquainted with the cake way. But unfortunately, the Blog Tutorial only runs fine in CakePHP 1.1. If you try to run the code on 1.2, you will  get errors as shown below, either when you add or edit post:</p>
<p><a href="http://ahsanity.files.wordpress.com/2007/08/blogtutorialerror.gif" title="Blog Tutorial Error in CakePHP 1.2"><img src="http://ahsanity.files.wordpress.com/2007/08/blogtutorialerror.gif" alt="Blog Tutorial Error in CakePHP 1.2" /></a></p>
<p>The main reason for this is that functions like input(), tagErrorMsg(), textarea(), hidden() in the Html Helper are now deprecated. Instead, all the form related functions are moved in the Form Help.</p>
<p>So, to make the blog tutorial code run on 1.2, you just have to make the following simple changes:</p>
<ol>
<li> Load the form helper in the Posts Controller (/app/controllers/posts_controller.php):<br />
<code><br />
&lt;?php<br />
class PostsController extends AppController {<br />
var $name = 'Posts';<br />
<b>var $helpers = array('Form' );</b><br />
...<br />
}<br />
?&gt;<br />
</code></li>
<li>Change the view of add (/app/views/posts/add.thtml) to:<br />
<code><br />
&lt;h1&gt;Add Post&lt;/h1&gt;<br />
<b> &lt;?php echo $form-&gt;create('Post');?&gt;</b><br />
&lt;p&gt;<br />
<b>&lt;?php echo $form-&gt;input('title'); ?&gt;</b><br />
&lt;/p&gt;<br />
&lt;p&gt;<br />
<b>&lt;?php echo $form-&gt;input('body'); ?&gt;</b><br />
&lt;/p&gt;<br />
<b>&lt;?php echo $form-&gt;end('Submit');?&gt;</b><br />
</code></li>
<li>Also change the view of edit (/app/views/posts/edit.thtml) to:<br />
<code><br />
&lt;h1&gt;Edit Post&lt;/h1&gt;<br />
<b> &lt;?php echo $form-&gt;create('Post');?&gt;</b><br />
<b>    &lt;?php echo $form-&gt;input('id'); ?&gt;</b><br />
&lt;p&gt;<br />
<b>      &lt;?php echo $form-&gt;input('title'); ?&gt;</b><br />
&lt;/p&gt;<br />
&lt;p&gt;<br />
<b>        &lt;?php echo $form-&gt;input('body'); ?&gt;</b><br />
&lt;/p&gt;<br />
<b> &lt;?php echo $form-&gt;end('Submit');?&gt;</b><br />
</code></li>
</ol>
<p>And thats it! Your blog tutorial code will be running smoothly on 1.2. One last thing, that I recommend, is to change the extension of all the views from .thtml (e.g. index.thtml) to .ctp (e.g. index.ctp). Though not doing so will not create any problem, but you better get use to the .ctp extension, as this is the defaut file extension for CakePHP 1.2 views.</p>
<p>For a more complete picture of the changes in 1.2, please visit: <a href="http://ahsanity.wordpress.com/2007/08/29/cakephp-12-the-romance-continues/">CakePHP 1.2: The Romance Continues&#8230;</a></p>
<p>Thats it! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ahsanity.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ahsanity.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahsanity.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahsanity.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahsanity.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahsanity.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahsanity.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahsanity.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahsanity.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahsanity.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahsanity.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahsanity.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahsanity.wordpress.com&blog=379099&post=37&subd=ahsanity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ahsanity.wordpress.com/2007/08/31/making-the-blog-tutorial-run-on-cakephp-12/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36685b445a149dd9d7be8d2ac8298d99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ahsan</media:title>
		</media:content>

		<media:content url="http://ahsanity.files.wordpress.com/2007/08/blogtutorialerror.gif" medium="image">
			<media:title type="html">Blog Tutorial Error in CakePHP 1.2</media:title>
		</media:content>
	</item>
		<item>
		<title>CakePHP 1.2: The Romance Continues &#8230;</title>
		<link>http://ahsanity.wordpress.com/2007/08/29/cakephp-12-the-romance-continues/</link>
		<comments>http://ahsanity.wordpress.com/2007/08/29/cakephp-12-the-romance-continues/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 20:29:22 +0000</pubDate>
		<dc:creator>Ahsan</dc:creator>
				<category><![CDATA[CakePHP 1.2]]></category>
		<category><![CDATA[CakePhp]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ahsanity.wordpress.com/2007/08/29/cakephp-12-the-romance-continues/</guid>
		<description><![CDATA[
It is almost a year ago when I started seeing her, and ever since I am in love with her. From then on,   I have been with her in quite a few projects, and she has never let me down. Its true that at times the relationship has not gone that well, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahsanity.wordpress.com&blog=379099&post=36&subd=ahsanity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.cakephp.org" title="CakePHP"><img src="http://ahsanity.files.wordpress.com/2007/08/cakephplogo.thumbnail.gif?w=94&#038;h=94" alt="CakePHP" height="94" width="94" /></a></p>
<p>It is almost a year ago when I started seeing her, and ever since I am in love with her. From then on,   I have been with her in quite a few projects, and she has never let me down. Its true that at times the relationship has not gone that well, but its mostly my fault. Either it was my lack of understanding her well or my impatience, or just the pressure of tight deadlines, that I ended up in uncomfortable situations with her. But she never let me down. Eventually, we made it through, and here I am one year later, writing about my beautiful relationship with Cakephp.</p>
<p>Oh hell! I didnt expect to get carried away this early, but contrary to what you are thinking, this article is not about my romance with CakePHP, but again, you never know when I start to get carried away <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  For what little I have used this wonderful framework, it has been solely 1.1. Mostly due to lack of time, I never actually tried the new CakePHP 1.2. This is my attempt to get myself in tune with the latest release of CakePHP, and continue the romance.  In my attempt to learn more about 1.2 (without getting into the code right away), I figured out that there is still no good documentation available. And whatever there is, are scattered across the web. Here I try to get them all together, and I hope this will help others to find 1.2 resources easily, and eventually help them adopt 1.2 faster.</p>
<h2>Features</h2>
<p>Behaviours, With Association,  enhanced validation, a new helper for form, built in pagination support, integrated unit testing and caching are some of the new features to name. But, if you are looking for a more clearer idea about what are the new features in 1.2, head right to the article by <a href="http://cakebaker.42dh.com" title="Blog of Cakebaker">cakebaker</a> called <a href="http://cakebaker.42dh.com/2007/04/05/whats-new-in-cakephp-12/">What&#8217;s new in CakePHP 1.2 ?</a> The article clearly lists down all the major changes made in 1.2. <a href="http://cakebaker.42dh.com">Cakebaker</a> also has an article that compares 1.1 and 1.2: <a href="http://cakebaker.42dh.com/2007/05/25/which-cake-should-you-eat/">Which Cake should you eat?</a>. This will help you make your choice, but in my humble opinion, I still think 1.2 will be difficult for most people to start with, if they are new to CakePHP. The major reason being the lack of proper documentation. Having said that, most of 1.1 documentation will still work for 1.2, but there is the danger of using any deprecated feature or not taking full advantage of 1.2. If you are the type who likes the feeling of going into the unknown, then dive straight in 1.2. On the other hand, if you like to play it safe, and want complete control over what you are doing, you should go for 1.1. But again, my judgement might be totally wrong :p. Another reason, why you should start with 1.1 is that it will allow you to be in a better situation to comprehend the cool features that 1.2 comes with.</p>
<p>Ok! Enough of my opinions, now lets continue with the rest of 1.2 resources. The next one is by <a href="http://cake.insertdesignhere.com/">Nate</a>: <a href="http://cake.insertdesignhere.com/posts/view/17">Bag o&#8217; Tricks</a>. This has random features of 1.2,  that will definitely make your eyes go twinkling if you used 1.1 and never knew anything about 1.2. Having said that, I have the perfect link to follow: <a href="http://www.cakephp.org/files/OCPHP.pdf">OCPHP</a>. These are the presentation slides on 1.2 in the recently held OCPHP conference. A must see for any 1.2 wanna be.</p>
<h2>Validation</h2>
<p>One area where CakePHP 1.2 has really improved is in the built in validation support. In 1.1 there where only four validation rules: VALID_NOT_EMPTY, VALID_NUMBER, VALID_EMAIL and VALID_YEAR. The rest had to be hand coded. In 1.2 there are more validation rules than you will ever need: alphanumeric, email,  maxlenght,  url and phone are a few to name. To get a better picture of all the available rules and how to use them, follow the links below:</p>
<ul>
<li><a href="http://cakebaker.42dh.com/2007/01/03/validation-with-cakephp-12/">Validation with CakePHP 1.2</a> by Cakebaker again.</li>
<li><a href="http://lemoncake.wordpress.com/2007/07/03/all-about-validation-in-cakephp-12/">All about Validation in CakePHP 1.2</a> by Another Cake Baker.</li>
<li><a href="http://lemoncake.wordpress.com/2007/07/06/all-about-validation-in-cakephp-12-part-2/">All about Validation in CakePHP 1.2 &#8211; Part 2</a> by Another Cake Baker</li>
<li><a href="http://lemoncake.wordpress.com/2007/06/26/validation-gotcha-in-cakephp-12/">Validation Gotcha in CakePHP 1.2</a> by Another Cake Baker</li>
<li><span class="nodeLabelBox repTarget"><span class="nodeText editable"><a href="http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2">Multiple rules of validation per field in CakePHP 1.2</a> by <a href="http://bakery.cakephp.org/users/view/mariano">Mariano Iglesias</a></span></span></li>
</ul>
<h2>Caching</h2>
<p>Cool! Enough of validation, and now its going to be something that is becoming more important as CakePHP is being used in high traffic web apps: caching. Proper caching of data can make your app improve its performance dramatically. CakePHP 1.2 comes with caching support right out of the box. At the moment, it has support for five different caching engines:</p>
<ol>
<li>File</li>
<li><a href="http://php.net/apc/">APC</a></li>
<li><a href="http://www.php.net/memcache">Memcache</a></li>
<li><a href="http://xcache.lighttpd.net/">Xcache</a></li>
<li>Model</li>
</ol>
<p>The default caching engine is file i.e. it uses the files to cache data. But, the most elegant thing about the 1.2 caching support is that it has a common interface for all the caching engines. You can change the caching engine and yet use the same code to cache. Also, you can use any other caching engine with the same interface. You can even combine all the caching engines appropriately by writing our own engine by wrapping different caching engines into it. Switching caching engine in the runtime is also possible. What else can you ask for? Links? Here they are:</p>
<ul>
<li> <a href="http://jirikupiainen.com/2007/05/21/cakephp-cache/">CakePHP 1.2 Cache</a> by <a href="http://jirikupiainen.com/about/">Jiri Kupiainen</a></li>
<li><span class="nodeLabelBox repTarget"><span class="nodeText editable"><a href="http://bakery.cakephp.org/articles/view/optimizing-your-cakephp-elements-and-views-with-caching">Optimizing your CakePHP elements and views with caching</a> by <a href="http://bakery.cakephp.org/users/view/digitalspaghetti">Tane Piper</a></span></span></li>
<li><span class="nodeLabelBox repTarget"><span class="nodeText editable"><a href="http://bakery.cakephp.org/articles/view/cache-elements-individually-for-each-user">Cache Elements Individually</a> For Each User by </span></span><a href="http://bakery.cakephp.org/users/view/ketan"><span class="nodeLabelBox repTarget"><span class="nodeText editable">Ketan</span></span></a></li>
</ul>
<h2>Console</h2>
<p>If you have used the bake.php script in 1.1, you will be amazed by the new console of CakePHP1.2. Basically, what the bake.php script did was that it allowed you to create models, controllers and view file structure ready for you(this is more commonly called baking) so that you have a structure ready for you to start working on. The new console takes this to the next level by allowing you to not only bake(auto generate code), but gives you access to different code from the command line. You can even use it to automate different tasks. This is something that I will most definitely write about more in the future, but for the time being, these links will satisfy your thirst:</p>
<ul>
<li><a href="http://cakephp.org/screencasts/view/6">Setting Up the CakePHP Console on Windows</a>. this is a screencast from the <a href="http://cakephp.org">CakePHP site</a></li>
<li><a href="http://cakephp.org/screencasts/view/7">Setting Up the CakePHP Console on *nix</a>, another screencast</li>
<li>Update(31/08/07): <span class="nodeLabelBox repTarget"><span class="nodeBracket editable insertBefore"></span><span class="nodeText editable"><a href="http://cakebaker.42dh.com/2007/05/31/baking-a-bit-faster-with-the-bake-script/">Baking a bit faster with the bake script</a> by Cakebaker</span></span></li>
<li><span class="nodeLabelBox repTarget"><span class="nodeText editable">Update(31/08/07): <a href="http://cakebaker.42dh.com/2007/06/06/faster-baking-of-controllers-with-the-bake-shell-script/">Faster baking of controllers with the bake shell scrip</a>t by Cakebaker</span></span></li>
<li><span class="nodeLabelBox repTarget"><span class="nodeText editable">Update(31/08/07): <a href="http://cakebaker.42dh.com/2007/06/11/baking-views/">Baking Views</a> by Cakebaker </span></span></li>
</ul>
<h2>Test Suite</h2>
<p>Unit testing is something that has become vital for cooking bug-free(bug free? Im definitely kidding) apps. CakePHP 1.2 has integrated CakePHP test suite that uses <a href="http://simpletest.org/">SimpleTest</a>. There isn&#8217;t much(just one) docs for this yet, but I am sure that this feature is so important, that proper docs will be available very soon. May be I can chip in <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . For the time being this is the only link I found, and it is from the bakery: <a href="http://bakery.cakephp.org/articles/view/testing-models-with-cakephp-1-2-test-suite">Testing Models with CakePHP 1.2</a> test suite by <a href="http://bakery.cakephp.org/users/view/mariano">Mariano Iglesias</a> .</p>
<p>Wow! I cant believe you are still reading. I am already becoming tired of writing, so you must be tired as well, but thanks for being with me <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Frankly, I didnt expect this to get this long, but I still have some more links to write about. Don&#8217;t worry, I will be quick from now on <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>The &#8216;With&#8217; Association</h2>
<p>[Update(06/09/07)]<br />
The &#8216;hasandbelongstomany&#8217; relationship has been one of the most confusing aspects of model relationship in CakePHP for quite sometime, but (hopefully) not anymore. The &#8216;with&#8217; association is here to make life easier. So what is it? It is nothing more than an easy way to access the join table. With the &#8216;with tag&#8217;, you can directly access the join table without any hassle. Some of the details are discussed by <a href="http://www.littlehart.net/atthekeyboard/about/">Chris&#8217; Brain</a> in <a href="http://www.littlehart.net/atthekeyboard/2007/09/04/a-glimpse-inside-cakephp-12/">A Glimpse Inside CakePHP 1.2</a></p>
<h2>RSS Feeds</h2>
<p>Making RSS Feeds for your app cant get easier. <a href="http://jirikupiainen.com/2007/05/30/creating-rss-feeds-with-cakephp-12/">Super-easy RSS feeds with CakePHP 1.2</a>  by <a href="http://jirikupiainen.com/about/">Jiri Kupiainen</a> and <span class="nodeLabelBox repTarget"><span class="nodeBracket editable insertBefore"></span><a href="http://www.littlehart.net/atthekeyboard/2007/03/13/how-easy-are-web-services-in-cakephp-12-really-easy/"><span class="nodeText editable">How Easy Are Web Services in CakePHP 1.2?  Really Easy!</span></a></span> by <a href="http://www.littlehart.net/atthekeyboard/about/">Chris Hartjes</a> explains it all. Don&#8217;t forget to go through the comments.</p>
<h2>Pagination</h2>
<p>In CakePHP 1.1, pagination was not present in the core. With 1.2, pagination is right at home as <a href="http://bakery.cakephp.org/users/view/rtconner">Rob Conner</a> explains in <a href="http://bakery.cakephp.org/articles/view/basic-pagination-overview-3">Basic Pagination Overview (1.2)</a>  and <a href="http://bakery.cakephp.org/articles/view/advanced-pagination-1-2">Advanced Pagination (1.2)</a>.  Update(30/08/07): I cant believe I missed this wonderful article by <a href="http://cake.insertdesignhere.com">Nate</a>: <a href="http://cake.insertdesignhere.com/posts/view/16">Pagination, etc.</a></p>
<h2>Authentication and ACL</h2>
<p>Authentication and Access Control List are explained in the following bakery articles:</p>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/simple-form-authentication-in-1-2-x-x">Simple Form Authentication in 1.2.x.x</a> by <a href="http://bakery.cakephp.org/users/view/SeanCallan"><span class="nodeLabelBox repTarget"><span class="nodeBracket editable insertBefore"></span><span class="nodeText editable">Sean Callan</span></span></a></li>
<li><span class="nodeLabelBox repTarget"><span class="nodeText editable"></span></span><a href="http://bakery.cakephp.org/articles/view/how-to-use-acl-in-1-2-x">How to use ACL with Cake PHP 1.2.x?</a>  by  <a href="http://bakery.cakephp.org/users/view/ketan">Ketan</a></li>
</ul>
<h2>Email Component</h2>
<p>1.2 has a new Email Component: <span class="nodeLabelBox repTarget"><span class="nodeText editable"><a href="http://bakery.cakephp.org/articles/view/brief-overview-of-the-new-emailcomponent">Brief Overview of the new EmailComponent</a> by <a href="http://bakery.cakephp.org/users/view/GreyCells">GreyCells</a></span></span></p>
<h2>Helpers</h2>
<p>Now with helpers. There is a new helper called FormHelper that is dedicated to you know what(Forms). Also, now the &#8220;dot&#8221; notation can be used(Model.field instead of Model/field). The links below shows the usage of different helpers in 1.2</p>
<ul>
<li><a href="http://www.donutczar.com/cake1point2/donuts/html_helper">Html Helper</a> by Jeff Keith</li>
<li><a href="http://www.donutczar.com/cake1point2/donuts/form_helper">Form Helper </a></li>
<li><a href="http://www.pagebakers.nl/2007/06/05/using-json-in-cakephp-12/">Javascript Helper&#8217;s JSON object</a> by <a href="http://www.pagebakers.nl">Eelco Wiersma</a></li>
<li>Update(30/08/07): <a href="http://cake.insertdesignhere.com/posts/view/15">Form Building: More Auto-Magic Than You Can Handle?</a> by <a href="http://cake.insertdesignhere.com">Nate</a></li>
</ul>
<h2>The 1.2 Manual</h2>
<p>Ok! Thats it! But before I let you go I have one final link. I am sure you are eagerly waiting for the 1.2 Manual to come out. The CakePHP people are hard at work to get it done. But, if you want to have a sneak peak at the work, just <a href="https://cakeforge.org/plugins/scmsvn/viewcvs.php/sandbox/1.2/?root=cakedocs">click here</a>. It is still incomplete, but going through it will not harm.</p>
<p>Thats all I have. I plan to write more about each 1.2 features in more detail, but lets see how that one goes. If you think I missed any useful link, please do let me know. I will be glad to update. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ahsanity.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ahsanity.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahsanity.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahsanity.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahsanity.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahsanity.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahsanity.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahsanity.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahsanity.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahsanity.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahsanity.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahsanity.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahsanity.wordpress.com&blog=379099&post=36&subd=ahsanity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ahsanity.wordpress.com/2007/08/29/cakephp-12-the-romance-continues/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36685b445a149dd9d7be8d2ac8298d99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ahsan</media:title>
		</media:content>

		<media:content url="http://ahsanity.files.wordpress.com/2007/08/cakephplogo.thumbnail.gif" medium="image">
			<media:title type="html">CakePHP</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Started With AJAX in CakePHP</title>
		<link>http://ahsanity.wordpress.com/2007/02/23/get-started-with-ajax-in-cakephp/</link>
		<comments>http://ahsanity.wordpress.com/2007/02/23/get-started-with-ajax-in-cakephp/#comments</comments>
		<pubDate>Fri, 23 Feb 2007 11:42:44 +0000</pubDate>
		<dc:creator>Ahsan</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CakePhp]]></category>

		<guid isPermaLink="false">http://ahsanity.wordpress.com/2007/02/23/get-started-with-ajax-in-cakephp/</guid>
		<description><![CDATA[This article has useful links for a CakePhp new comer to get started with using Ajax. As the manual mentions, using Ajax in your Cake application is very easy. Ajax is implemented in Cake through the Cake Ajax Helper, which is included with Cake by default. The Cake Ajax helper utilizes the ever-popular Prototype and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahsanity.wordpress.com&blog=379099&post=14&subd=ahsanity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This article has useful links for a CakePhp new comer to get started with using Ajax. As the manual mentions, using Ajax in your Cake application is very easy. Ajax is implemented in Cake through the Cake Ajax Helper, which is included with Cake by default. The Cake Ajax helper utilizes the ever-popular <a href="http://www.prototypejs.org/">Prototype</a> and <a href="http://script.aculo.us/">script.aculo.us</a>  libraries for Ajax operations and client side effects.</p>
<p>Below are some useful resources that got me started with Ajax in CakePHP. I hope these will help you too:</p>
<h3>1. Getting Started:</h3>
<ul>
<li><a href="http://grahambird.co.uk/cake/tutorials/ajax.php" target="_blank">http://grahambird.co.uk/cake/tutorials/ajax.php</a><br />
This is probably the best place to start. Graham Bird wrote an excellent tutorial for getting started with CakePhp and Ajax:</li>
<li><a href="http://manual.cakephp.org/chapter/helpers" target="_blank">http://manual.cakephp.org/chapter/helpers</a><br />
Once you are done understanding Graham Bird&#8217;s tutorial, you should be ready to understand what the manual says about the Ajax Helper. You will find Ajax Helper way below in this page.</li>
<li><a href="http://infor96.com/cake/posts/" target="_blank">http://infor96.com/cake/posts/</a><br />
This is another excellent Ajax example with CakePhp. It shows a demo Ajax blog. You can also download the source.</li>
<li><a href="http://cakebaker.42dh.com/2006/01/18/submit-a-form-with-ajax/" target="_blank">http://cakebaker.42dh.com/2006/01/18/submit-a-form-with-ajax/</a><br />
CakeBaker&#8217;s blog on Submitting A Form With Ajax is a small but resourceful blog to read, especially the comments.</li>
<li><a href="http://www.nolimit-studio.com/baking/2006/05/16/adding-visual-effects-to-ajax-calls/" target="_blank">http://www.nolimit-studio.com/baking/2006/05/16/adding-visual-effects-to-ajax-calls/</a><br />
Baking with Sosa has an interesting blog on Adding Visual Effects to Ajax Calls.</li>
</ul>
<h3>2. AutoComplete:</h3>
<ul>
<li><a href="http://manual.cakephp.org/chapter/helpers" target="_blank">http://manual.cakephp.org/chapter/helpers</a><br />
The Manual has a good example to get you started with Ajax Autocomplete. <a href="http://manual.cakephp.org/chapter/helpers" target="_blank"></a></li>
<li><a href="http://cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/" target="_blank">http://cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/</a><br />
This blog by Cakebaker discusses a component made by Nate for easy implementation of autocomplete.</li>
<li><a href="http://bakery.cakephp.org/articles/view/77" target="_blank">http://bakery.cakephp.org/articles/view/77</a><br />
The bakery has a good example for the same component.</li>
</ul>
<h3> 3. Ajax Redirect:</h3>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/92" target="_blank">http://bakery.cakephp.org/articles/view/92</a></li>
<li><a href="http://cakebaker.42dh.com/2006/03/15/redirect-with-ajax/" target="_blank">http://cakebaker.42dh.com/2006/03/15/redirect-with-ajax/</a></li>
<li><a href="http://cakebaker.42dh.com/2006/03/28/a-simple-redirect-component/" target="_blank">http://cakebaker.42dh.com/2006/03/28/a-simple-redirect-component/</a></li>
</ul>
<h3>4. Ajax Validation:</h3>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/88" target="_blank">http://bakery.cakephp.org/articles/view/88</a></li>
</ul>
<h3>5. Encoding:</h3>
<ul>
<li><a href="http://cakebaker.42dh.com/2006/01/17/the-right-encoding-for-your-ajax-views/" target="_blank">http://cakebaker.42dh.com/2006/01/17/the-right-encoding-for-your-ajax-views/</a></li>
</ul>
<h3>6. Ajax Uploader:</h3>
<ul>
<li><a href="http://thinkingphp.org/demos/cake-timer/" target="_blank"> http://thinkingphp.org/demos/cake-timer/</a></li>
</ul>
<h3>7. Ajax Star Rating:</h3>
<ul>
<li><a href="http://rossoft.wordpress.com/2006/09/07/ajax-star-rating-helper/" target="_blank">http://rossoft.wordpress.com/2006/09/07/ajax-star-rating-helper/</a></li>
</ul>
<h3>8. Ajax Chat:</h3>
<ul>
<li> <a href="http://bakery.cakephp.org/articles/view/229" target="_blank">http://bakery.cakephp.org/articles/view/229</a></li>
</ul>
<h3>9. TinyMCE with Ajax:</h3>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/140" target="_blank">http://bakery.cakephp.org/articles/view/140</a></li>
</ul>
<h3>10. Dojo Helper</h3>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/53" target="_blank">http://bakery.cakephp.org/articles/view/53</a></li>
</ul>
<h3>11. Updating Select Box using Ajax</h3>
<ul>
<li><a href="http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/" target="_blank">http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/</a><br />
This tutorial shows how to update a select box using ajax call. Very useful</li>
</ul>
<h3>12. CakePhp API</h3>
<ul>
<li><a href="http://api.cakephp.org/class_ajax_helper.html" target="_blank">http://api.cakephp.org/class_ajax_helper.html</a><br />
Once you are confortable with using Ajax with Cake, the only place you need to look for any reference is the API. <a href="http://api.cakephp.org/class_ajax_helper.html" target="_blank"></a></li>
</ul>
<h3>13. Search The Cake PHP Google Group</h3>
<ul>
<li><a href="http://groups.google.com/group/cake-php/search?group=cake-php&amp;q=ajax&amp;qt_g=Search+this+group" target="_blank">http://groups.google.com/group/cake-php/search?group=cake-php&amp;q=ajax&amp;qt_g=Search+this+group</a><br />
Yes. You will be surprized to find out the amount of information you will get to know from searching the group. To search the group for &#8220;ajax&#8221;, use the link above.</li>
</ul>
<p>Feel free to leave comment. And, if you think I have left out some useful links, do let me know too.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ahsanity.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ahsanity.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ahsanity.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ahsanity.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ahsanity.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ahsanity.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ahsanity.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ahsanity.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ahsanity.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ahsanity.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ahsanity.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ahsanity.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ahsanity.wordpress.com&blog=379099&post=14&subd=ahsanity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ahsanity.wordpress.com/2007/02/23/get-started-with-ajax-in-cakephp/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/36685b445a149dd9d7be8d2ac8298d99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ahsan</media:title>
		</media:content>
	</item>
	</channel>
</rss>