0

After run composer.json I go edit :

C:\xampp\htdocs\cakephp\src\Console;
C:\xampp\mysql\bin;
C:\xampp\php;

In run cmd go in htdocs run cake bake

C:\xampp\htdocs>cake bake

'cake' is not recognized as an internal or external command, operable program or batch file.

I can not find folder /lib/cake/Console in CakePHP v3.0.0 RC2

hg8
  • 1,082
  • 2
  • 15
  • 28
Ahmed MR-mody
  • 61
  • 1
  • 6

2 Answers2

2

Did you try to do it?

cd C:\xampp\htdocs\FolderCakePhp\bin

and run:

cake bake model all 

I think what you want to do is it!

Shinomoto Asakura
  • 1,473
  • 7
  • 25
  • 45
1

Since CakePHP 3.0.0, the CakePHP core is installed as a Composer dependency of your project and it no longer resides in lib/Cake. It is now under vendor/cakephp/cakephp instead (after running a composer install). Also see the documentation on this.

Also, the bake command is now a Plugin that you will need to include manually if you want to use it.

php composer.phar require --dev cakephp/bake:dev-master

I would recommend to start your project with the App template. This already has the bake plugin in it's composer.json file. Just check it out locally:

cd /your/dev/folder
git clone https://github.com/cakephp/app.git yourApp

Then install everything at once with Composer:

cd yourApp
curl -sS https://getcomposer.org/installer | php
php composer.phar install

This will give you the bake shell (in the bin folder of your project) and the framework itself all in one.

Oldskool
  • 34,211
  • 7
  • 53
  • 66