Announcement Announcement Module
Collapse
No announcement yet.
How to cleanly remove Roo generated Controller? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to cleanly remove Roo generated Controller?

    Hi,

    I have generated controllers with
    Code:
    controller all --package ~.web
    However I don't need all Entities to be viewable, but still would like to keep them mapped. Is there a command or a best practice on how to remove unwanted generated controllers and their views?

  • #2
    Hi,

    I am a little unclear what you mean by 'like to keep them mapped'. You mean you want to have controllers for all entities? If that is not what you want you can choose to create controllers for only a sub-selection of your entities by using the 'controller scaffold' command. You can also edit your menu.jspx file to remove links to scaffolded controllers, not sure if it would make sense in that case to keep them though.

    Maybe you can elaborate a bit on your question.

    Cheers,
    Stefan

    Comment

    Working...
    X