CakePHP: baking cake in Windows

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.

  1. Click Start > Run.
  2. Type cmd then press Enter.
  3. Change directory to where my extracted CakePHP files were
    cd \xampp\htdocs\cake (press enter)
  4. Type: cake\console\cake bake all
  5. 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.

4 thoughts on “CakePHP: baking cake in Windows

  1. Pingback: wedding cake?

  2. 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.

  3. 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 :-)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s