Fixes #149
[akelos.git] / lib / utils / generators / clone / USAGE
blob4f4c35ca81ad31a9aa4f3befd1fb943635b00f1f
1 Description:
2     The clone generator clones controllers, models and views.
4     The generator takes a the singular name for desired controller and related model,
5     and as second parameter it takes the singular name for desired set of clones
7 Example:
8     >> generate clone PaymentMethod CreditCard
10     Credit card controller with URLs like /credit_card/debit.
11     
12         Controller: app/controllers/credit_card_controller.php
13         Views:      app/views/credit_card/debit.tpl [...]
14         Helper:     app/helpers/credit_card_helper.tpl
15         Test:       test/functional/test_CreditCardController.php
16         Model:      app/models/credit_card.php
17         Test:       test/unit/credit_card.php
18         Fixtures:   test/fixtures/credit_cards.yml