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

cake bake all except Test

I wonder how could I use the cake bake all command without filling the Test folder. Because I'm getting an error, when I use this command : Fatal Error Error: Call to undefined method App::getAssociated() in…
Oliboy50
  • 2,661
  • 3
  • 27
  • 36
0
votes
1 answer

problem baking view in cakephp

I've created a custom view template (see link below), which I'm using to bake my views in cakephp. http://book.cakephp.org/view/789/Modify-default-HTML-produced-by-baked-templates Everything works fine, but if I try to incorporate an element in my…
Tomba
  • 1,735
  • 5
  • 22
  • 38
0
votes
1 answer

How can I set up 'bake' with MAMP on OS X with projects in 'Sites'?

I'm trying to set up 'cake bake' on OS X. I'm using MAMP and every time I try to 'bake', I get this: -bash: cake: command not found I have the Apress Beginning CakePHP book, but the suggestions in that book aren't working for me. In the Apress,…
user169320
  • 1,694
  • 2
  • 12
  • 16
0
votes
1 answer

Trying to get cake bake tool on mac os X

I am pulling my hair trying to figure out out to get the bake tool to work. What i've done Opened terminal and type in cd ~ Then i've type in vi .profile Which already has the following contents export…
arkhamDev
  • 1,028
  • 1
  • 15
  • 32
0
votes
1 answer

Why won't the database connection work in the console with cakephp?

I am trying to use bake with cakephp. I have gotten to the cake welcome screen below: Welcome to CakePHP v2.3.0-RC2 Console --------------------------------------------------------------- App : app Path: /Users/philip7899/Desktop/Philips Server…
Philip7899
  • 4,599
  • 4
  • 55
  • 114
0
votes
0 answers

CakePHP: "cake bake all" creates always the same code

I have a problem: I have these tables in DB: Users Empresas (enterprises) ("hasMany users" and "hasMany documents") Documents And many other related to "Empresas" And after cake bake all for "documents", the code generated for views (example…
Kanfor
  • 138
  • 6
0
votes
1 answer

CakePHP modify skel for plugins

Is it possible to modify the skeleton structure for a plugin? I've found in the docs and it says how to change the skel for baking a project using cake bake project -skel Console/Templates/skel However, what I want is to be able to bake a plugin,…
NovaOverflow
  • 235
  • 2
  • 8
0
votes
0 answers

Baking a HABTM-association

I'm getting the following error and can't see why. I can see that the PodcastsUser is not a table... I baked the whole application with the DB below – Im getting the error just when accessing/Podcasts/view/*Nr*, index etc is fine. THANK YOU! Error:…
dh762
  • 2,259
  • 4
  • 25
  • 44
0
votes
2 answers

Cake bake "`stream` not a ConsoleOutput nor string" error

I seem to be getting cryptic errors when I am trying to bake certain views and controllers. The models baked okay (one died with a similar message building tests), and all the controllers baked okay bar one with the following error message: Error:…
Andy
  • 23
  • 1
  • 3
0
votes
1 answer

CakePHP bake generating auth component user actions

I'm sure there is a relatively simple answer. I am trying to use CakePHP 2.0 to bake an application from the command line, and i would like cake to create the basic AuthComponent methods for my user model. the database table for users is named…
Todd
  • 5,314
  • 3
  • 28
  • 45
0
votes
1 answer

Cakephp Code Generation with bake

I have just downloaded cakephp latest version 2.3.0 and trying to create skeleton application using bake command. Problem is when I execute the command cake bake at /app>cake bake. Following message I am getting: Welcome to CakePHP v1.3.2…
Kam Paul
  • 111
  • 1
  • 6
0
votes
3 answers

Cakephp Error: Call to a member function find() on a non-object

I have the following model: class Adjustment extends AppModel { var $name = 'Adjustment'; var $belongsTo = array( 'Source_Budget'=>array('className'=>'Budget','foreignKey'=>'s_budget_id'), …
leonidou
  • 3
  • 1
  • 4
0
votes
0 answers

Baking JavaScript Files in CakePHP 2.x

I was wondering if it is possible to Bake JS Files in CakePHP? I have written some custom cake bake templates that fit our layout and standards, and take care of the crud involved in our controllers and views. I'd like to take it one step further by…
cnizzardini
  • 1,196
  • 1
  • 13
  • 29
0
votes
1 answer

CakePHP 2.1 How to generate code for a single view?

I found that the explanations in the cookbook do not match my own experiences with the bake shell. When I run ./cake bake from the shell, I don't get the output as specified above, instead it asks me for an app path and a skeleton path, and then…
grssnbchr
  • 2,877
  • 7
  • 37
  • 71
0
votes
3 answers

cake php auto select foreign keys when editing

I am using Cake PHP with scaffolding. I'm having a problem with the code that it generates and want to see if there is a way around it of if I should end up building custom views. Lets say that I have two models Tests and Questions. Tests can have…
majestiq
  • 545
  • 8
  • 25
1 2 3
8
9