Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the Bake code generator #13

Open
CKShia opened this issue Mar 12, 2012 · 3 comments
Open

Using the Bake code generator #13

CKShia opened this issue Mar 12, 2012 · 3 comments

Comments

@CKShia
Copy link

CKShia commented Mar 12, 2012

Hi Mike, I am Alex from ICT333 T1A 2012.

Regarding the Bake code generator that I've seen from here -> http://www.ibm.com/developerworks/opensource/tutorials/os-php-cake2/section4.html

In this statement,

To use Bake, cd into the /webroot/app directory and launch the Cake Console: ../cake/console/cake bake. You should be presented with a screen that looks like Figure 2.

Sample image

Bake Shell

I can't found any directory path /webroot/app inside the Team Maker folder; thus, I assume it is under the directory www/cake/console.

I would like to know whether I've entered into correct dir path? as I can't see any other dir path contains this name (webroot/app). And, how to call this bake shell out in the command prompt and use it?
Perhaps to provides me a step-by-step guidance if possible?

Thanks.

@mmhan
Copy link
Owner

mmhan commented Mar 14, 2012

Assuming you are using windows, WAMP server and your www directory of teammaker is C:\wamp\www\teammaker\

  • First, you will need cd into that directory using cmd
  • then execute php cake\console\cake bake
    • in order to do this you need php to be in your system path, i'm sure if you google around how you could get that working with wamp.

@CKShia
Copy link
Author

CKShia commented Mar 14, 2012

Not sure why I keep getting the same error message CLI has stopped working when I type cake bake to launch the shell in the directory cake\console.

Sample screen

Of course, when I type the php -v it contains no error; thus, I suspects the problem is the cakephp itself.

Was googling around to find the solution however can't get any help from the forums.
Have tried to re-install the whole program and set the environment path in Windows, still the same.

May I know how did you manage to get it works as in your cake console setup?
Thanks.

@mmhan
Copy link
Owner

mmhan commented Mar 21, 2012

Hmmm.... that's strange. I don't have that problem because I had been developing it on Ubuntu. Although I want you to use Ubuntu for development, I wouldn't suggest you to right now, cos it'll probably take quite some time.

I have came across a site that allow you to bake online, but for the life of me, I can't find it again anymore.

You might wanna go to StackOverflow, CakePHP Q&A, and, as last resort, #cakephp irc channel.

Also check http://nuts-and-bolts-of-cakephp.com/2012/02/14/error-database-connection-mysql-is-missing-or-could-not-be-created-cakephp-20-cake-bake-trouble/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants