More information about the error?
From: [email protected] [mailto:[email protected]] On Behalf Of Gayathiri Balachandran
Sent: 31 Oktober 2006 13:43
To: [email protected]
Subject: Cake PHP Help
Hello!
Please help me in finding answer to this.
I am new to Cake PHP. I have downloaded the Cake PHP and worked out the example show in the site http://www.sitepoint.com/article/application-development-cakephp. I had done all the coding as per in the example,
- Create a table (notes),
- database.php (app/config),
- note.php (app/models),
-notes_controller.php (app/controllers).Creating *.thtml leads to an error. I just copy the code and save it as index.thtml (app/views/notes) and run in the browser ( http://localhost/cake/app/views/notes ), it simply displays the coding.
The database is configured correctly. http://localhost/cake/ shows
"Your database configuration file is present.
Cake is able to connect to the database."
Cake Version: 3632
PHP Version: PHP5
Database: MySQL
Thanks in advance for all your help!!Regards,
Gayathiri.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
- Re: Cake PHP Help Eric C Blount
- Re: Cake PHP Help Chris Hartjes
Reply via email to
Okay, one more time:
Cake automagically routes requests to your controllers/views. So when your controller is "notes" and you have /app/views/notes/index.thtml, then going to http://localhost/notes/
will automatically run the notes controller, method index, and display index.thtml view. Likewise, if you run http://localhost/notes/edit/, that will run the notes controller, method edit, and display
edit.thtml from /app/views/notes/.
Get it?
HTH,
Eric
On 10/31/06, Adrian Godong <[EMAIL PROTECTED]> wrote:
