Hi brian,

> Are you getting an empty table? Or, is Cake running into an error and
> not continuing to output anything?

Yes, I'm getting an empty table, the for loop just doesn't execute at
all, but all the other code works (even the stuff after the for)

> If the former, it's likely that you haven't set a var named
> 'restaurants'. You need $this->set('restaurants', ...); in your
> controller action.

Yes, I've been trying to do that.  The controller action is a function
defined in the controller, right ? Does it have to be called anything
special ?

At the moment I have this code in the function:

                $this->set('restaurants', $this->paginate());


but it's still not working.
--~--~---------~--~----~------------~-------~--~----~
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