CakePHP Tutorials

Posted by Matt on Sun, Feb 10 2008

Here's a list of various CakePHP turorials, organized by subject. I'm trying to stick to mostly 1.2 stuff, but included some 1.1 tutorials that we're still helpful. Leave a comment if I missed one and I'll add it to the list.

Books

You can also read my review of CakePHP Application Development here.

Also I have a free CakePHP e-book - make sure to check it out.

      

General

manual.cakephp.org - The 1.1/Old Manual
book.cakephp.org - The 1.2/New Manual
api.cakephp.org - The API

Getting Started

www.ibm.com - IBM’s 5-part "Cook up Web sites fast with CakePHP"
manual.cakephp.org - CakePHP Blog Tutorial
cakephp.bytenoise.co.uk - In the Kitchen with CakePHP

Version 1.2 Info

cakebaker.42dh.com - Deprecated stuff in CakePHP 1.2

Bake Console

cakebaker.42dh.com - Faster baking with bake
www.littlehart.net - Screencast: Interactive Console for CakePHP

Debugging

www.cakephp.org - Using Debug Messages

Test Suite

bakery.cakephp.org - Testing Models with CakePHP 1.2 test suite
cakebaker.42dh.com - How to use the official CakePHP test suite

Auth Component

www.littlehart.net - Simple User Registration in CakePHP 1.2
www.webdevelopment2.com - CakePHP Auth Component For Dummies Tutorial
www.webdevelopment2.com - CakePHP Auth Component - Tutorial Two

ACL

lemoncake.wordpress.com - Using AclBehavior in CakePHP 1.2
lemoncake.wordpress.com - Using AuthComponent and ACL in CakePHP 1.2
bakery.cakephp.org - How to use ACL with Cake PHP 1.2.x?
www.realm3.com - Setting Up User Groups With ACL and Auth in CakePHP 1.2

Ajax

bakery.cakephp.org - Getting started quickly with Scriptaculous effects

Advanced Ajax

blogs.bigfish.tv - Drag and drop using Ext JS with the CakePHP Tree Behavior
mentalramblings.info - CakePHP Ajax Comments

HABTM

tempdocs.cakephp.org - hasAndBelongsToMany (HABTM)

Admin Routing

www.cakephp.org - Admin Routing

Validation

bakery.cakephp.org - Multiple rules of validation per field in CakePHP 1.2
cakebaker.42dh.com - Validation with CakePHP 1.2
tempdocs.cakephp.org - Data Validation

Pagination

tempdocs.cakephp.org - Pagination
www.littlehart.net - CakePHP Pagination With A HABTM Relationship
cakebaker.42dh.com - Pagination of data from a HABTM relationship
PHP Log (German) - Pagination of the Tree Behaviour

RSS

cake.insertdesignhere.com - Cake 1.2's new RSS helper

Theming

www.sanisoft.com - Theming your CakePHP apps (V1.2)
www.pseudocoder.com - Theming With CakePHP

Counter Cache

cakebaker.42dh.com - Counting associated records
www.cakephp.nu - CounterCache in CakePHP 1.2 beta

Builds

ertw.com - Pushing a CakePHP app from dev to prod

The Set Lib

www.thinkingphp.org - Cake 1.2’s Set class eats nested arrays for breakfast!
cakebaker.42dh.com - An alternative way to create arrays

Posted in CakePHP

15 Comments

T73Net said on Feb 12, 2008
I'd like to submit my blog site for inclusion into your roundup, as I have several posts about various topics here. Thanks
Adam Royle said on Feb 12, 2008
I've just added a Drag and Drop Ext JS + Tree Behavior tutorial on my blog, would be great if you could add to this list.

http://blogs.bigfish.tv/adam/2008/02/12/drag-and-drop-using-ext-js-with-the-cakephp-tree-behavior/
Matt said on Feb 13, 2008
T73Net, Adam,
I added a couple of your Ajax links. Thanks.
Ralle said on Feb 04, 2009
I have added created a german tutorial about pagination of the Tree Behaviour and the MPTT Pattern in general. Would be great if you add this to your list.
Pagination of the Tree Behaviour
Matt said on Feb 05, 2009
Thanks. Added.
Shane McCallum said on Feb 18, 2009
Great resource Matt, thanks for your efforts.
Harsha M V said on Mar 02, 2009
i would like to add phpvideotutorials.com

they ahve a paid tutorial from scratch to finsh of an application
Jon Langevin said on Apr 27, 2009
Here's another Ajax tutorial:

Ajax+CakePHP = Dynamically populate HTML select/dropdown box -- http://forum.phpsitesolutions.com/php-frameworks/cakephp/ajax-cakephp-dynamically-populate-html-select-dropdown-box-t29.html

If you like it, don't forget to digg it :-)
Kevin Lloyd said on May 08, 2009
Mr. Matt C!

Just wanted to thank you for the links.
Excel Tutorials said on Mar 10, 2010
I think I am trying to do something similar to Shafiq. I have a users model, a posts model and a comments model. I am just a bit unsure about the proper associations. Currently a user hasMany posts and a user hasMany comments, posts hasMany comments and posts belongsTo a user. So how does comments work? Comments belongTo both a user and a post?
Naoshad said on Jun 11, 2010
Thank you very much for this links.. helped me a lot!
Alan Ieftin said on Feb 18, 2011
Cake PHP is offer stability, speed and working in a great environment. I've used few solutions until now but cake PHP is clear the best solution. I am glad to see that you sustain this campaign and you promote the advantages of using this tool in web development.
Ben McDougall said on Feb 23, 2011
Probably one of the most powerful PHP frameworks - using cake can rapidly speed up development time
Tom said on Feb 23, 2011
Thanks for the heads up, i'm trying to master cake this month, looks like a great book.
silvi anggraini said on Dec 30, 2010
i love cakephp, simple and powerfull, thanks for sharing