There are a lot of articles on the internet on how to make CakePHP and it’s bake function to work in Windows.
I have tried setting the PATH environment variable to match the console
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\xampp\php;c:\xampp\cake\cake\console\
No avail. So I am just doing this instead after creating the databases.
- Click Start > Run.
- Type cmd then press Enter.
- Change directory to where my extracted CakePHP files were
cd \xampp\htdocs\cake (press enter) - Type: cake\console\cake bake all

- That’s it. All is well.
If you guys know how to make Windows recognize the cake.bat file to execute when it’s folder is included in the path, feel free to comment.
NOTE: I am not using the production setup of CakePHP and the command may vary depending on that. Please feel free to correct.
Pingback: wedding cake?
Here is a tutorial that I made that shows step by step on baking cake in Windows 7 or vista.
Baking cake in windows 7 or vista
Thanks.
I have tried this tutorial and a range of various college courses, my theory is, that you can only make good wedding cakes if you have the talent to be able to do so, no matter how hard I try, my roses still end up looking like cabbages I will just have to leave it to the professionals to make a decent cake on family events.
if it is showing some error something like ‘php’ is not recognized as internal operation or command then just put E:\xampp\htdocs\cake>path = e:\xampp\php
and it will start working :-)