#6503: Generated add/edit views through the console should not be controller
dependent
----------------------------------------------------+-----------------------
    Reporter:  galette                              |         Owner:           
        Type:  Enhancement                          |        Status:  new      
    Priority:  Low                                  |     Milestone:  1.3.x.x  
   Component:  Console                              |       Version:  1.2 Final
    Severity:  Minor                                |    Resolution:           
    Keywords:  console scaffolding views generated  |   Php_version:  PHP 5    
Cake_version:                                       |  
----------------------------------------------------+-----------------------
Comment (by galette):

 Replying to [comment:1 mark_story]:
 > Why not use bake instead of copy + paste?

 [[BR]]

 Bake is appropriate to generate one set of controller/views with index(),
 add(), view(), edit() methods (and eventually admin ones) for '''one'''
 specified Model using:
 {{{
 cake bake controller MyModel scaffold
 }}}

 In order to generate two or more sets of controllers/views with index(),
 add(), view(), edit() methods '''for the same model''' as a base for other
 screens of my application, I copied+pasted the set controller/views
 generated by bake since it seems to be able to generate only one set of
 controller/views for one model.

 Another solution would be bake asking for the controller name and using
 model name as default one.

 Purpose is accelerating prototyping/development.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6503#comment:2>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to