Bake cannot find model and controller files

Asked

Viewed 70 times

1

I am using cakephp version 2.9, to make it easier I decided to leave all applications with a single core. So far everything ok, but when using Bake to be faster it does not find the files(model,controller) in the folder of the app I’m working on it keeps referring to the core folder. How can I fix this?

My scenario is php 5.6 installed and set in the system path, normal use xamp to run apache and mysql!

1 answer

1


Cake doesn’t use models or controllers to make Bake. Correct me if I’m wrong. What you need, after configuring the database.php file, is to mention the table in which you want to do Bake.

In the terminal, in the folder of your application, type the command:

bin/cake bake /*sua tabela*/ all

Remembering that you should already have the table created. I hope to have helped.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.