Not sure if you seen that, but there are two versions of docs...
sounds like you did tutorial for 1.2, while using 1.1
I also agree that you should use 1.2 as it is a lot more powerful, but
either way make sure you pick the right version of  the docs in the
book.

On Sep 7, 8:59 am, Ryan <[EMAIL PROTECTED]> wrote:
> Thanks a ton guys. Being new to Cake, I am impressed with the
> community helpfulness so far.
>
> Just knowing that if Cake is kicking an error, the root cause may be a
> version/documentation issue and not my own mistake will be a big help
> in fixing problems.
>
> -Ryan
>
> (And although it doesn't sound like I'm going to get my wish anytime
> soon, just a quick plug to raise awareness for the awesomeness of
> Haml:http://groups.google.com/group/cake-php/browse_thread/thread/51d742e5...)
>
> On Sep 6, 9:12 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
>
> > I think the RC is a misnomer in two ways:
>
> > 1) There are still too many new features popping up for a post-beta  
> > cycle and
> > 2) it's stable enough to be a Final. ;-)
>
> > The only problem you're going to have working with 1.2 at this point  
> > is that not everything is documented yet, or the documentation might  
> > already be outdated. Either way you might have to poke around a bit  
> > more to get the information you need. That being said, the 1.2 docs  
> > already run circles around the 1.1 documentation and all the work from  
> > here on is focusing on 1.2.
>
> > I'd even recommend to ditch RC2 and go straight with the latest SVN.
>
> > On 6 Sep 2008, at 20:06, Ryan wrote:
>
> > > Thanks David, I am using 1.1.19.6305. I follow what you're saying
> > > about the WHERE. When I changed find('all') to findAll(), it worked.
>
> > > I am using 1.1.19.6305 because it appears to be the last stable
> > > release. As a newbie, do you think it's ok for me to go with the edge
> > > and use 1.2.0.7296 RC2? I guess by RC2 it should be stable enough.
>
> > > -Ryan
>
> > > On Sep 6, 12:50 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> > >> What version of Cake are you using? The find('all', ...) syntax is
> > >> somewhat of a recent development. It certainly wasn't in Cake 1.1.
> > >> Seems to me you are using a version of Cake that expects the first
> > >> find() parameter to be the condition, hence it puts whatever you put
> > >> in there right after 'WHERE'. Look at the documentation for older
> > >> versions, or, better, get a recent version from the repository. Even
> > >> compared to the 1.2 RC2 release there are a lot new goodies in there
> > >> by now. Seehttps://trac.cakephp.org:
>
> > >> svn cohttps://svn.cakephp.org/repo/branches/1.2.x.x/path/to/save
>
> > >> On 6 Sep 2008, at 12:23, Ryan wrote:
>
> > >>> Darrell: That's not my query, it's what CakePHP generated for me.  
> > >>> I do
> > >>> believe backticks are ok though.
>
> > >>> David: Here is my posts_controller.php model (I took it verbatim  
> > >>> from
> > >>>http://book.cakephp.org/view/335/Create-a-Posts-Controller):
>
> > >>> <?php
> > >>>  class PostsController extends AppController {
> > >>>    var $name = 'Posts';
> > >>>    function index() {
> > >>>      $this->set('posts', $this->Post->find('all'));
> > >>>    }
> > >>>  }
> > >>> ?>
>
> > >>> Thanks!
>
> > >>> On Sep 5, 9:07 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> > >>>> Seems to me you're using the wrong syntax in your $this->Model-
> > >>>>  >find(***) call.
> > >>>> Can you paste it in here?
>
> > >>>> On 6 Sep 2008, at 07:02, Ryan wrote:
>
> > >>>>> I am just getting started with Cake. Impressed so far! Trying out
> > >>>>> the
> > >>>>> blog tutorial from the Cookbook (http://book.cakephp.org/view/219/
> > >>>>> Blog) and getting this error.
>
> > >>>>> Query: SELECT `Post`.`id`, `Post`.`title`, `Post`.`body`,
> > >>>>> `Post`.`created`, `Post`.`modified` FROM `posts` AS `Post` WHERE  
> > >>>>> all
> > >>>>> LIMIT 1
> > >>>>> Warning: SQL Error: 1064: You have an error in your SQL syntax;
> > >>>>> check
> > >>>>> the manual that corresponds to your MySQL server version for the
> > >>>>> right
> > >>>>> syntax to use near 'all LIMIT 1' at line 1 in /web/php/balistik/
> > >>>>> cake/
> > >>>>> libs/model/datasources/dbo_source.php on line 440
>
> > >>>>> I am running MySQL 5.0.45. I thought Cake supported MySQL 4+ so
> > >>>>> seems
> > >>>>> like I should be ok.
>
> > >>>>> Thanks in advance for the help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to