全部博文(89)
分类:
2008-10-23 09:38:30
[hantsy@localhost app]$ ../cake/console/cake
Welcome to CakePHP v1.2.0.7692 RC3 Console
---------------------------------------------------------------
Current Paths:
-app: app
-working: /home/hantsy/public_html/cakeblog/app
-root: /home/hantsy/public_html/cakeblog
-core: /home/hantsy/public_html/cakeblog/
Changing Paths:
your working path should be the same as your application path
to change your path use the '-app' param.
Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp
Available Shells:
app/vendors/shells/:
- none
vendors/shells/:
- none
cake/console/libs/:
testsuite
i18n
console
acl
api
bake
schema
To run a command, type 'cake shell_name [args]'
To get help on a specific command, type 'cake shell_name help'
[hantsy@localhost app]$ ../cake/console/cake bake
Welcome to CakePHP v1.2.0.7692 RC3 Console
---------------------------------------------------------------
App : app
Path: /home/hantsy/public_html/cakeblog/app
---------------------------------------------------------------
Interactive Bake Shell
---------------------------------------------------------------
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[Q]uit
What would you like to Bake? (D/M/V/C/P/Q)
> c
---------------------------------------------------------------
Bake Controller
Path: /home/hantsy/public_html/cakeblog/app/controllers/
---------------------------------------------------------------
Possible Controllers based on your current database:
1. Posts
Enter a number from the list above, type in the name of another controller, or 'q' to exit
[q] > 1
---------------------------------------------------------------
Baking PostsController
---------------------------------------------------------------
Would you like to build your controller interactively?
Warning: Choosing no will overwrite the PostsController. (y/n)
[y] > y
Would you like to use scaffolding? (y/n)
[n] > n
Would you like to include some basic class methods (index(), add(), view(), edit())? (y/n)
[n] > y
Would you like to create the methods for admin routing? (y/n)
[n] > n
Would you like this controller to use other helpers besides HtmlHelper and FormHelper? (y/n)
[n] > n
Would you like this controller to use any components? (y/n)
[n] > n
Would you like to use Sessions? (y/n)
[y] > n
---------------------------------------------------------------
The following controller will be created:
---------------------------------------------------------------
Controller Name: Posts
---------------------------------------------------------------
Look okay? (y/n)
[y] > y
Creating file /home/hantsy/public_html/cakeblog/app/controllers/posts_controller.php
File exists, overwrite? /home/hantsy/public_html/cakeblog/app/controllers/posts_controller.php (y/n/q)
[n] > y
Wrote /home/hantsy/public_html/cakeblog/app/controllers/posts_controller.php
Cake test suite not installed. Do you want to bake unit test files anyway? (y/n)
[y] > n
---------------------------------------------------------------
Interactive Bake Shell
---------------------------------------------------------------
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[Q]uit
What would you like to Bake? (D/M/V/C/P/Q)
> v
---------------------------------------------------------------
Bake View
Path: /home/hantsy/public_html/cakeblog/app/views/
---------------------------------------------------------------
Possible Controllers based on your current database:
1. Posts
Enter a number from the list above, type in the name of another controller, or 'q' to exit
[q] > 1
Would you like to create some scaffolded views (index, add, view, edit) for this controller?
NOTE: Before doing so, you'll need to create your controller and model classes (including associated models). (y/n)
[n] > y
Would you like to create the views for admin routing? (y/n)
[y] > n
Creating file /home/hantsy/public_html/cakeblog/app/views/posts/index.ctp
File exists, overwrite? /home/hantsy/public_html/cakeblog/app/views/posts/index.ctp (y/n/q)
[n] > y
Wrote /home/hantsy/public_html/cakeblog/app/views/posts/index.ctp
Creating file /home/hantsy/public_html/cakeblog/app/views/posts/view.ctp
Wrote /home/hantsy/public_html/cakeblog/app/views/posts/view.ctp
Creating file /home/hantsy/public_html/cakeblog/app/views/posts/add.ctp
Wrote /home/hantsy/public_html/cakeblog/app/views/posts/add.ctp
Creating file /home/hantsy/public_html/cakeblog/app/views/posts/edit.ctp
Wrote /home/hantsy/public_html/cakeblog/app/views/posts/edit.ctp
---------------------------------------------------------------
View Scaffolding Complete.
---------------------------------------------------------------
Interactive Bake Shell
---------------------------------------------------------------
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[Q]uit
What would you like to Bake? (D/M/V/C/P/Q)
>