CakePHP cakebake on linux

Can any body suggest me how to bake a cake in CakePHP 2.x on linux

What i tried

$ cd MyProject/app/Console $ ./cake bake 

he gives me this line, I don’t know how to get out of here

 Welcome to CakePHP v2.1.3 Console --------------------------------------------------------------- App : Console Path: /var/www/MyProject/app/Console/ --------------------------------------------------------------- What is the path to the project you want to bake? [/var/www/MyProject/app/Console/myapp] > 
+4
source share
1 answer

You have the wrong way

When you do this:

 $ cd /MyProject/app/Console $ ./cake bake 

You start the click from inside the Console folder. This is not the right / normal way to perform a cli click.

As the output shows, cli believes that you want to bake a new project in the Console folder, because the path you are in is not a project in itself. This one changed a few months ago , but in the version of the cake you use, the directory you are in is considered your application folder.

However, a cake commonly used is:

 $ cd /MyProject/app $ Console/cake bake Welcome to CakePHP v2.3.6 Console --------------------------------------------------------------- App : app Path /var/www/project/app/ --------------------------------------------------------------- Interactive Bake Shell --------------------------------------------------------------- [D]atabase Configuration [M]odel [V]iew [C]ontroller [P]roject [F]ixture [T]est case [Q]uit What would you like to Bake? (D/M/V/C/P/F/T/Q) 

When already in the application folder, the bake command asks what you want to create.

+3
source

Source: https://habr.com/ru/post/1488624/


All Articles