Questions tagged [cakephp-bake]

Code generation tool for CakePHP framework.

Bake is a code generation tool for CakePHP framework, which lets users easily generate application components (according to CakePHP's interpretation of "MVC" design pattern) from CLI.

For further research:

125 questions
0
votes
1 answer

CakePHP Bake - Issues with underscores in Table Names

I am trying to bake a model that uses a table called "forecast_counties". I cannot for the life of me get the automated bake process to use this table. I've tried the following: "cake bake all forecast_county" "Fatal error: Class 'ForecastCounty'…
DirtyBirdNJ
  • 574
  • 10
  • 26
-1
votes
1 answer

CakePHP Model Associations

Here's the deal, i have 2 models: Rus and Audios. I want to use records from Audios in Rus controller, so i go and type in associations like this: and
Tonie Kimo
  • 11
  • 1
-3
votes
2 answers

Baking in CakePHP

After setting up my database and baking, the model associations declared are not correct. eg instead of seeing hasOne i see hasAndBelongsToMany so my question here is for examples of sql tables that would generate the 4 correct associations when…
Simba
  • 522
  • 1
  • 5
  • 9
-4
votes
1 answer

Syntax error or access violation at the time of cake bake in cakephp

How can I solve this error? At the time of cake bake. This is my database configuration: class DATABASE_CONFIG { public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', …
-5
votes
2 answers

Generating customized files using bake command in cakephp

I am new to cakephp and so impressed with its rapid development. I am eager to know that i have made my own html for (index.ctp,edit.ctp,add.ctp and delete.ctp) and i want 'bake' command to use that html when we run that command in command prompt…
dkc
  • 28
  • 6
1 2 3
8
9