Hi Moob,

Saw your other message regarding SQL queries, the showLog method is the
one that generates the table of SQL queries at the foot of each page if
Debug is set to > 2. You get an SQL error message because it isn't
supposed to be called that way (it's a method on the DB source, not the
model, and calling it as described will result in a query to the DB as
it is redirected by the model __call method).

Have you defined either an app_controller or app_model, if so what have
you put in it?

Try this with Debug set to 2:
index
{
        $data = $this->Post->findAll();
        pr ($data); // This will output whatever the variable is to the
screen to check if there is something to display
        $this->set('posts',$data);
}

What are the contents of the SQL table at the foot of the page? You
should be seeing one entry of "SELECT `Post`.`id`, `Post`.`title`,
`P..."

If it still doesn't work, I can only suggest comparing again with the
tutorial code, or if you prefer here's a version with a link to
download the running files http://www.noswad.me.uk/tutorials/Posts

I have tested this with a version 2642 & 2802 (last nights) and can't
duplicate the problem, and I tried pretty hard ;)

AD7six


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to