tags:

views:

41

answers:

2

What would you do - when you feel frustrated that want a simple value like a URL parameter and don't know where to get it? - tired of searching book.cakephp.org, bakery.cakephp.org or every other sites?

+2  A: 
debug($this);

It revels the mystery of Cake's uncountable levels of associated arrays in both views and controllers. At least for me.

Moe Sweet
+1 `debug` is the most basic and best tool available while developing with Cake. Shortly followed by `var_dump` for standard PHP. :)
deceze
+2  A: 

I was frustrated with CakePHP years ago. Their conventions are far too many in comparison to what I was used to. However, I eventually decided to read the manual, buy a CakePHP for beginners and followed a very good advice from my CakePHP mentor. He said: "Forget everything you think you know about programming till after you have created your first CakePHP app. What you think you know will hinder what you are about to learn".

Basically I stopped being lazy. Now I can not imagine myself developing outside of cake.

My advice is take the time to go through the CakePHP manual. If there is something you can not find there please take the time to contribute to the manual. It is only as powerful as the community's ability to contribute.

To answer your Q directly, IF you stick to cakePHP conventions this should be all you need http://book.cakephp.org/view/55/The-Parameters-Attribute-params Good luck!

Angel S. Moreno
I love the comment. ANd you are soooo right... `I stopped being lazy`. All of the PHP code I have ever seen that is not built in an open source framework is so spaghetti and sloppy it's not even funny. I love the structure of CakePHP and the organizational aspects of it.
cdburgess