I'm a noob and have a suggestion, get the eval copy of Nusphere's php ed
, hit a page then step through the code in the debugger, I didn't really
understand the controller/view mapping until today, when I stepped
through the code and figured out how cake looks for your request, maps
it to a controller then figures out your action, and what an action
is...

Its helped me a bunch.

Grant. 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Hartjes
Sent: Wednesday, October 25, 2006 11:54 AM
To: [email protected]
Subject: Re: THTML files not working


On 10/25/06, barry_normal <[EMAIL PROTECTED]> wrote:
>
> Hi guys.
>
> Well, php is running fine. I get the welcome screen from Cake okay.
>
> Here's the url: http://192.168.0.2/app/views/posts/index

Well, here's part of your problem.

The URL should be http://192.168.0.2/app/posts/index

Again, I stress, you NEVER access the views directly.

It's always host/controller/action/optional-id

In this case, 'host' is http://192.168.0.2/app

Hope that helps.

/me goes back to being cranky about writing XML parsers for XML feeds
that won't follow their own documentation on what content is presented

--
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never
have."
-- Rasmus Lerdorf

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard



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