> WaitWaitWait: What does the value 'list' mean in the first place? What
> is returned if you set type to 'list'? Yeah a list I guess but how is
> the datatype? a string, an array with one element?
Prior to CakePHP 1.2 (I believe), 'find' was "split up" into separate
functions such as: find, findAll, findNeighbours, findCount, and
generateList. Starting with CakePHP 1.2, all of these separate
functions were combined into a single 'find' function where the first
parameter denotes the type of find (first, all, neighbors, count,
list) and the second parameter being the options for those 'find'
operations.
Since the documentation for these separate and deprecated 'find'
functions still exist, you can find more about each type by scrolling
down the page to the corresponding deprecated function name here:
http://book.cakephp.org/view/73/Retrieving-Your-Data. So to find out
about the 'list' find operation, scroll down to 'generateList.'
The datatypes returned by all of the 'find' operations will be PHP
arrays except 'count', which returns the count of records resulting
from the query. The 'list' find operation returns an array that is
formatted differently than the others (useful for things such as HTML
select elements).
Additional and more detailed information on any CakePHP function can
be found in the API documentation here: http://api.cakephp.org
> That in fact this beginners tutorial from IBM developmenthttp://www.scribd.com/doc/5503/CakePHP-tutorial-no-1-from-IBM
> and the other parts in the series
>
> Is way more understandable than anything found on cakephp.org.
There are a number of CakePHP tutorials and tidbits on various blogs
and other sites. The one most people probably start with is the Blog
tutorial in the CakePHP manual. Check out the bakery (http://
bakery.cakephp.org) for user-submitted CakePHP articles, components,
helpers, and other code. Pseudocoder has a number of links that may be
of use here: http://www.pseudocoder.com/archives/2008/02/10/cakephp-tutorials/.
Another good blog resource which also contains the "12-step program to
get addicted to CakePHP" is: http://teknoid.wordpress.com/category/cakephp/.
Finally, one other resource I can think of off the top of my head is:
http://www.planetcakephp.org/, where you can keep up to date with some
of the latest CakePHP articles being posted to many different sites.
There's also a few CakePHP books out there if you're interested in
that as well: http://www.amazon.com/gp/product/1847193897,
http://www.apress.com/book/view/1430209771, and http://www.apress.com/book/view/9781430215783.
> After few hours of development I ran into a problem with a HABTM
> relation. The problem is very basic.
> I tried to restrain myself from just writing it in plain SQL, but
> after 4 days of relentless googling for a solution I'm close to giving
> up cakePHP altogether.
Two good sources for support are the CakePHP IRC channel #cakephp on
irc.freenode.net and the google group here. If you have any questions
about anything with CakePHP, don't hesitate to ask in either place.
> I'm just quited baffled since CakePHP has been there for years,
> does anybody here agree on some of my worries?
Additions to the CakePHP manual are always welcomed and encouraged,
even if it's just an example or two of a certain topic or function
that does not already have any.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment