Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 0.3, 0.4
-
Fix Version/s: 3.0
-
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
| This issue relates to: | ||||
| GRAILS-376 | Organizing domain classes in subfolders |
|
|
|
| This issue is related to: | ||||
| GRAILS-376 | Organizing domain classes in subfolders |
|
|
|
I have created this clone of
GRAILS-221, because:This improvement as described in
GRAILS-221is only half of the enhancement, and its not leading anywhere.A package is a namespace and not only a name.
The reason that controllers, domain classes should be in packages is exactly that multiple teams would be able to work in parallel if each team has its own package, and must not consider name clashes.
GRAILS-221, because: This improvement as described inGRAILS-221is only half of the enhancement, and its not leading anywhere. A package is a namespace and not only a name. The reason that controllers, domain classes should be in packages is exactly that multiple teams would be able to work in parallel if each team has its own package, and must not consider name clashes.