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:

127 questions
1
vote
1 answer

How to get an interactive console when baking a plugin in CakePHP?

Using CakePHP 2.6.7 When baking a normal part of an application (e.g. using cake bake model) the console is interactive - it goes through the construction process asking for you to choose options at each stage. But when using cake bake model MyModel…
Kvothe
  • 1,669
  • 2
  • 17
  • 34
1
vote
0 answers

CakePHP: cake bake all outputs code

I'm using AMPPS with Yosemite for my first CakePHP app. I downloaded CakePHP 3 using the AMPPS installer and the browser successfully renders the default home without any errors or issues. When I try cake bake all users (as instructed in CakePHP…
1
vote
1 answer

cakephp 3 postgres 9.4 driver bake

I want to generate models with bake terminal command. CakePhp 3 is able to connect to my postgres database. All PHP extensions for postgres are activated (php_pdo_pgsql, php_pgsql). I checked php.ini. When I run the command: cake bake model I have…
gestrem
  • 11
  • 1
  • 2
1
vote
2 answers

Bake Tables with Uppercase

I am installing the cake 3.0 in a database outside the convention, all the tables are with capital letter making the bake return this error: Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.c_a_d_b_e_m' doesn't exist in…
1
vote
3 answers

How to safely use reserved SQL names?

I'm using Cakephp 3 using sqlserver as datasource server. I am sure there's no problem with my database connection.. as home.ctp prompts that I am connected to my database.. and I'm as well using migrations plugin to create my tables.. it seems like…
1
vote
2 answers

CakePHP, Set "cake" Environment Variable?

I'm using the "cake" console in cakephp on Mac OS X 10.6.2. How do I set up the environment variable (or PATH?) so that all I need to type in terminal is "cake"... as opposed to the full path to the console app? I'm unabashedly a newb when it comes…
Sam
  • 1,461
  • 5
  • 22
  • 39
1
vote
0 answers

Cake model bake Error: The datasource configuration "493" was not found in database.php

I’m using Cakephp 2.4.1. I’m baking cake models having table name roles but I got following Error on console Creating file C:\wamp\www\projectnexus\app\Model\Role.php Error: The datasource configuration "493" was not found in database.php it comes…
design
  • 77
  • 6
1
vote
1 answer

CakePHP 1.3 (newest), fatal error while baking views

I've just downloaded the newest beta of CakePHP 1.3 for a new project (not a serious one, so no worries with the beta, still learning stuff, I'm right now trying to get grip on acl/auth). I've baked model and controllers for four databases, but…
pawelmysior
  • 3,110
  • 3
  • 26
  • 37
1
vote
2 answers

Database connection "Mysql" is missing while baking with CakePHP

I am baking Models in CakePHP through baking command ./cake bake model all I have configure database.php correctly. public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', …
Haider Ali
  • 766
  • 1
  • 9
  • 21
1
vote
3 answers

permissions error running Console/cake

I'm trying to run the cake console application for the first time. From the cake app folder I am running Console/cake then I get the following output PHP Warning: …
Devin Crossman
  • 6,816
  • 10
  • 54
  • 96
1
vote
3 answers

Cakephp postgres - default database unrecognized when baking

I have problem to baking in command line with console, only on Postgres Database. I use : Windows Cakephp 2.3 PostgreSQL 8.4.8) My database is on an external server (unix), and the others components on my local computer. For my App, the CakePhp…
Simon
  • 31
  • 1
  • 6
1
vote
3 answers

How to Custom cake bake in cakephp 2.x

I'm new in cakephp. And I try the amazing feature in this framework, cake bake I want to customize output in the model, view and controller in cake bake How to create new file view in baking (view,index,add,edit .ctp) example export_excel.ctp How…
Muhammad Cahya
  • 288
  • 4
  • 13
1
vote
1 answer

CakePHP Current Paths not correct for cake bake

My currect paths prevent me from executing cake bake. I get the reply: What is the path to the project you want to bake? [c:\xampp\htdocs\musiclib\myapp] > Hopefully the following details will reveal where I have gone wrong. In my XAMPP…
user2041343
  • 81
  • 1
  • 6
1
vote
2 answers

CakePHP 2 Bake unable to create a Model

I am trying to create a model through Cake Bake command. I am using windows and II7. I have set up the global variables on the system path so i can do "cake bake" on my Command Prompt. I have my database config defined in…
Alvaro
  • 37,936
  • 23
  • 138
  • 304
1
vote
1 answer

having trouble with cakePHP Bake and one of the database tables

I am using Bake to create models for my database tables. I have run into a little problem. I have 25 tables .... I strated baking the models until for one of the database tables the bake started giving a name of it own to the model,file and…
Annibigi
  • 5,415
  • 5
  • 19
  • 20
1 2
3
8 9