I'm not sure where the documentation is, but here's how I do it:
I added php.exe to my path in windows. That makes things a lot
easier. My setup is like this: my webroot is in c:\web\projects.
Cake is inside projects. I put my apps in my projects directory, too,
not in cake.
>From the command prompt: c:\>cd web\projects\cake\cake\scripts
c:\web\projects\cake\cake\scripts>php bake.php -project c:\web
\projects\myApp
This will create a basic project for you at c:\web\projects\myApp.
For me, using cake_1.2.0.4206, I get a few errors, and some folders
don't get created. Open c:\web\projects\myApp and create a models
folder. Also create a tmp folder. Inside tmp, make a cache folder.
Inside cache, make a models folder. Also, bake (for me, at least)
doesn't make the vendors or components folders.
Anyway, once you have done that, at the command prompt:
c:\web\projects\cake\cake\scripts>php bake.php -app c:\web
\projects\myApp
It will first walk you through your db config. After that, create a
model for your app. It will exit to the command prompt. Run bake
again and create a controller. Tell it you want to make some basic
class methods. This will bake the scaffolded methods into your
controller. Run bake again, and create a view. Tell it you want to
create some scaffolded views.
Tada! You're done. Now do it again for your other tables.
On Feb 28, 7:29 am, "xhenxhe" <[EMAIL PROTECTED]> wrote:
> It seems when I first a cake quite a few months ago I remember reading
> on how to "bake" - which basically turns the scaffolding into editable
> code. Where do I find documentation on how to do this (in windows)?
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---