CakePHP Steps involved in Baking Scripts:

i) Setup cakephp by ensuring that there is no warning message in the index page after initial installation. (for this you need to change salt value in /app/config/core.php, enable /app/config/database.php)

ii) Create a database and a user for the database. After this apply the database configuration parameters to /app/config/database.php

If you are running the bake for the first time, it will ask you to create database configuration for the first time.

iii) Ensure that the path or the environment variable is set with access to PHP, MySQL executables

c:/> PATH or $ echo $PATH

Go to the directory where you have unzipped the cake php location on the server

c:\> cd web\cake\console

c:\web\cake\console> cake bake

This will ask you the location where the application needs to be baked and the database configuration settings. If you set the verbose mode, it will ask you to create

If you want to get a menu based display to bake Controller, Views, Models, Database configuration you need to go to the “app” folder from where you need to give the bake command.

Note: You can add c:\web\cake\console to the PATH environment variable to reduce your typing

Or else, you need to issue the command

c:\web\app> c:\web\cake\console\cake bake
inorder for you to start baking.

Some times you may get into fatal errors when you do a cake bake especially with the development version. Do not panic. Just download the stable version to try out the bake functionality.