On Sep 30, 2006, at 9:35 AM, Mick wrote:
>
> Thanks John
>
> Still don't understand when it creates the new notes directory etc.
> Tried localhost/index.php/notes and got following;-
No new files or directories are created when using scaffold.
From a fresh batch of cake code, all you need to do to get notes up
and running is:
1. Create a Note model (/app/models/note.php)
class Note extends AppModel
{
var $name = 'Note';
}
2. Create a NotesController (/app/controllers/notes_controller.php)
class NotesController extends AppController
{
var $name = 'Notes';
var $scaffold;
}
3. Gotta have your DB config right (/app/config/database.php), and
you need a
'notes' table for your Note model.
Give that a try.
-- John
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---