> > 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)
>
> OK, so $restaurants is empty.

Yes, I understand that bit :)


> > 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 ?
>
> Well, kinda, if you want it to run ;-) Not knowing the details of your
> app, it's difficult to say. You mentioned that this was on your
> "homepage". Can you be a bit more specific about how this controller
> action is being called? Are you sure that the action is being run?
> Usually, the action that is run depends on the route (request being
> made). How are you getting to this page? What's the URL?

LOL again.  This is where I say "I'm a newbie, so I don't know what's
happenning ;)".  I think this is what I mean (and what you asked) ..
the view is called from /views/index.ctp and I know this is being
picked up properly because of the normal HTML on the page.  At this
stage I'm trying to link the view to a controller and I've never done
that before so I'm very much out of my depth.

> Do you have a $paginate array set in this controller? What does it
> look like? Have you tried using find() instead? You should always do
> that before using pagination, just to be sure your associations are
> set up properly and you get what you expected.

You're right, there is no paginate mentioned in the controller except
for my code (which I copied from another location)

> Are you even sure that you require pagination in this view? I ask
> because I don't see any use of the PaginatorHelper in the view code
> you posted.

That would be right as well.  My aim is to list the restaurant details
on the homepage.  The CRUD is the Admin interface that no one else
will see.  These details will need pagination, searching, etc..  I
just can't get the data to be displayed yet.
--~--~---------~--~----~------------~-------~--~----~
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