Grails
  1. Grails
  2. GRAILS-3406 Top level task: Controller Improvements
  3. GRAILS-1243

Improve support for Controllers to be placed in sub-folders/packages.

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.3, 0.4
    • Fix Version/s: 2.2
    • Component/s: Controllers
    • Labels:
      None

      Description

      Add support for placing controllers in sub-folders/packages within the controllers folder so you can keep related controllers together, create more structured urls and make path based url security easier?

      For example:

      \grails-app\controllers\SiteController.groovy -> http://localhost:8080/sample/site
      \grails-app\controllers\admin\UserController.groovy -> http://localhost:8080/sample/admin/user
      \grails-app\controllers\admin\RoleController.groovy -> http://localhost:8080/sample/admin/role

      And views would obviously have to follow the package structure of their controller:

      \grails-app\views\admin\user\show.gsp

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Jeff Scott Brown
              Reporter:
              Victor Volle
            • Votes:
              70 Vote for this issue
              Watchers:
              67 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Last Reviewed:

                Development