Hitu Bansal
Hitu Bansal

Reputation: 3137

Cakephp2 Baking

i am using Cakephp2 and i am trying to baking my application using commandprompt

here is my steps

c:/>xampp\htdocs\projectname\app>..\cake\console\cake bake

it doesnot work .

But if i use cakephp1.3 with same steps it works fine and look like as

Interactive Bake Shell
[D]atebase Configuration 
[M]odel 
so on

AnyBody Tell me what to do ?

Thanks

Upvotes: 2

Views: 532

Answers (2)

Atul
Atul

Reputation: 11

You can do it without changing your path variables. For window machine and xampp you can do following step to bake:-

  1. Type cd\ press enter
  2. Type cd:/xampp/php press enter
  3. Type php.exe C:/xampp/htdocs/projectName/lib/cake/console/cake.php bake press enter

Upvotes: 0

mensch
mensch

Reputation: 4411

The location of the Cake console has changed in 2.0. It's in: YOUR_CAKE_DIR/lib/Cake/Console/. Change YOUR_CAKE_DIR to the path to your Cake installation and you should be able to invoke cake bake again.

Just realised you're developing on Windows, I guess, in that case, the path becomes:

c:/>xampp\htdocs\projectname\app>..\lib\Cake\Console\cake bake

Upvotes: 3

Related Questions