Posted by: Adwin | October 2, 2007

setup console for cakephp (for windows)

cakephp logoYou can get the screencast about how to setup console with cakephp 1.2 in http://cakephp.org, but for you who want to do it quick (downloading the screencast is taking time and bandwith, especially for me) read this quick information. Just text .. no picture 🙂

  • go to cakephp.org , download the cake 1.2 (this is only works with cake 1.2, because 1.1.x doesnt have console, you can create your own console by creating batch (.bat/.sh) file)
  • right click on the My Computer, click on Properties
  • go to Advances tab , then click on the Environtment Variables button
  • in the system variables, there is aPATH, click to edit.
  • add this string c:\xampp\php;c:\cake1.2\cake\console\ . Notes. I install the php on my c:\xammp\php\ and I unzip the cake in c:\cake1.2\, so depend on your directory, change that lines. Finish.
  • To test it, open the command window. (type cmd on the run)
  • type : cake help and it should show the help file
  • for creating a new project, type cake bake project \www\mynewcakeproject
  • Done .
Advertisements

Responses

  1. Note that the cake path needs to point to the cake console directory. ie: c:\cake1.2\cake\console

    Thanks for the tutorial.

  2. hi, maybe u can help me…
    this is what i did:

    -unzip cake1.2 in c:\xampp\htdocs\cake1.2\
    my pc properties ->enviroment variables -> in path: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Archivos de programa\Archivos comunes\Adobe\AGL;C:\Archivos de programa\QuickTime\QTSystem\;c:\xampp\php;C:\xampp\htdocs\cake1.2\cake\console\ .

    then i go to cmd and type cake help n nothing happens
    please help me out… thx btw

  3. Thanks your guide helped, now I have Cake on my system!


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 )

Google+ photo

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

Connecting to %s

Categories

%d bloggers like this: