On Mon, Feb 2, 2009 at 2:15 PM, Chris Mc <[email protected]> wrote:
>
> 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.

Colour me confused, then. I have no idea how one would get Cake to use
a view file at views/index.ctp short of changing the controller's
$viewPath. Or, maybe this is something new to me.

> 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.

You should begin with linking a route to a controller, then deal with
the view for that action. I suspect that what you're trying to do is
to access the RestaurantsController from a PagesController view. This
is what requestAction() is for, though it's generally a good idea to
avoid using it. There are other ways. For one thing, it sems like this
table should be an element.

What is the route you're using to fetch this page? And what's the URL?
Is there some other controller involved?

--~--~---------~--~----~------------~-------~--~----~
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