David Golding



Intro to CakePHP Book

By David Golding | Print This Post Print This Post

Well, I’m pleased with the progress of my upcoming book, “The Newbie’s Introduction to CakePHP.” Funny, I thought that in the early stages it would be worthwhile to ask for input from the Cake community.

Not only did they respond, but the response is practically overwhelming! There are probably around 40 folks out there reviewing the first couple chapters for me, and their input has been extremely useful. So I hope that the project will continue with a lot of input to come.

The current couple chapters are available here:

Newbie Intro to CakePHP, 0.3

And an online forum was created to discuss the book:

Forum

I hope you enjoy, and please, keep the feedback coming!


Comments

22 Responses to “Intro to CakePHP Book”

Fabio Cevasco

Jul 30th, 2007, 2:26 pm

Well done and best of luck with your project. The CakePHP community is lucky to have someone like you who finally decides to come up with some decent docs about Cake.

I liked this bit in particular:

---
"This guide does not represent the practices, ideas, or conventions of the CakePHP Software Foundation and is not an official publication of the CakePHP community at large."
---

^^^*Please* keep it that way, for your own sake and sanity. Just a friendly advice ;)

Manny

Jul 30th, 2007, 7:29 pm

Sorry, why would the Cake Foundation care besides them getting a cut? All this seems counter to PHP itself.

You're actually helping to promote cake ;) So it's bonus for the "Foundation" and the cake community. Heck, I'd buy it if it's better the so called manual. I rather be ruffling through your book than searching the newsgroup or even worst hunting down the actual cake code.

Anyway, good luck with the book.

Andrej

Aug 1st, 2007, 2:40 am

Very nice introduction. I wish I had this back in summer of 2006 when I started my baking.

brian

Aug 6th, 2007, 10:56 am

In the "Typical problems" section I'd recommend dialing up the visibility of restarting apache. I'm definitely a moron sometimes but in my first two Cake installations I went through the entire process and couldn't get the application to load the stylesheet. I even explored the issue on the Cake IRC channel. My problem was that I hadn't restarted Apache. It seems obvious but for someone who doesn't spend a great deal of time in my terminal app or making changes to my Apache configuration this "obvious" solution took a few hours to figure out.

I'd just set it off in one of your grey boxes "Don't forget to restart Apache" and I'm sure you'll at least save me some time the next time I do a Cake install.

Matt

Aug 30th, 2007, 2:14 pm

Also to follow up on Brian's comment, my default XAMPP install had mod_rewrite commented out in httpd.conf. I had to uncomment that to get the app to load the stylesheet.

Deep Ganatra

Sep 6th, 2007, 11:41 am

You might not be knowing but your this sample chapter is going to make life lot more easier for newbies.. really impressed by reading it.. I am soon going to implement the mentioned stuff.

I am definitely looking forward to the whole book..

All the best and yes, good work.. very good work..

Regards,
Deep

[...] great resource to get off the ground is David Golding’s The Newbie’s Introduction to CakePHP. He does a nice job showing you how to set up CakePHP locally on your computer using either MAMP or [...]

Peter

Dec 20th, 2007, 9:48 pm

This is great. Really great. When is it likely to be completed, or may available for review?

Cheers, Pete

Louie

Jan 4th, 2008, 12:21 am

Is this available now? :) would really like to purchase it soon! Total newbie on cake here. Big problems on HABTM!

[...] is really welcome and I’m looking forward to get a copy of it. You can grab a couple of sample chapters at the author’s site. This entry was written by Niccolo Favari, posted on March 2, 2008 [...]

soosa

May 8th, 2008, 2:49 am

I just want to thank you for this great help, that was really helpful, please keep up the good work.

Simon Brüchner

Jun 3rd, 2008, 2:54 pm

It there a release date? When will it be out?

Dave

Jun 14th, 2008, 3:57 pm

@ Simon

The release date is set for July 21st.

http://apress.com/book/view/9781430209775

Moulouk Mouzaoir

Jul 9th, 2008, 5:34 am

Hi David,

I'm considering to order your Book. Is there a way I can see the table of content? Thanks ++.

Moulouk Mouzaoir

Jul 11th, 2008, 3:05 pm

Thanks David. I want ahead and pre-ordered. Can't wait to have it in my hands.

Justin

Aug 27th, 2008, 10:38 pm

Errata? On page 62 "Listing 5-4 may need some explaining..." Should it be "Listing 5-5 may need..." instead?

Justin

Aug 27th, 2008, 11:16 pm

Hi David, On page 65, when I followed the instruction in the book of the cake baking process. It asks "Would you like this console to use other model beside "post" Y/N? I select NO, I just wanted to let you know that particular step is not in the book. I'm on Ubuntu 8.04 but again I selected NO anyway, is it ok for that?
Please let me know as I follow through the whole book.
Thanks again,
Justin

David Golding

Aug 28th, 2008, 9:25 am

@Justin

Please use the Forum to post questions like yours, it's a little easier for everyone to see both your question and any solutions.

What version of Cake are you using? There have been some changes since the book published in RC2 that have made simple things like Baking slightly different. You'll be fine selecting Y on that prompt from Bake. Either way, it shouldn't affect the tutorial that much.

hmart

Sep 22nd, 2008, 7:40 am

Hello David,

Enjoying a free chapter, but I just would like to know why you did use the php short tags?.
This practice is not recommended in Cakephp coding standards [1] , also in widespread guidelines like Pear Coding Standard [2].

[1] https://trac.cakephp.org/wiki/Developement/CodingStandards#PHPtags

[2] http://pear.php.net/manual/en/standards.tags.php

Regards,

MCJenkins

Nov 10th, 2008, 9:03 am

I know HTML and CSS and I've been using PHP at a beginner level for a few years - just "drop through" code embedded within the html mainly.

I installed CakePHP easily and I get the concept of the MVC. But I'm having trouble getting my head around the whole "object oriented" side of things. Does your book explain how to use Cake in such a way that I would get? Or do I have some other leaning to do first?

I don't get what all this "This" business is about. For ex. $this->set('posts', $this->Post->find('all'));
makes no sense to me at all!!

MCJenkins

Nov 10th, 2008, 11:43 am

I just read the sample chapter - and it looks like I should have no trouble. Your explanations are very clear. I ran through the todo list setup without a hitch. Thanks - looking forward to getting your book!



Submit Comment


Beginning CakePHP: From Novice to Professional by David Golding

David Golding

A blog about CakePHP, web design, and grad studies in religion. © 2008, D. Golding