boujnah5207 / sharp-architecture

Automatically exported from code.google.com/p/sharp-architecture
Other
0 stars 0 forks source link

Controllers grouped into "areas" should be supported #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm working on a project using S#arp Architecture. There were a lot of
controllers in my project and is begin to hard to maintain.
For example, I have 22 component, such as Lifting Reporting, Back
Allocation Reporting, Lifting Data Management, Back Allocation Data
Management and so forth.

Each of the component I mentioned above have their own sub component
home, report by day, report by amount and many more,
where each of this have their own views. For example
BackAllocationReportingController and
the view is Views/BackAllocationReporting/Home.ascx, Views/
BackAllocationReporting/reportbyday.ascx and so forth. All controllers
in the Controllers directory and view is in Views Directory. And this is
veru confusing.

After browsing for a while, I found Phil Haack prototype about "Areas"
at http://haacked.com/archive/2008/11/04/areas-in-aspnetmvc.aspx which
seems a nice solution for my problem.

But this is hard to implement with S#arp Architecture, because ninject
will throw error if I have two controllers with same name
(example HomeController for BackAllocationReporting and HomeController
for LiftingReporting).

Original issue reported on code.google.com by wmccaffe...@gmail.com on 16 Nov 2008 at 11:39

GoogleCodeExporter commented 9 years ago
This should now be available with the replacement of Ninject with Castle 
Windsor.

Original comment by wmccaffe...@gmail.com on 3 Dec 2008 at 3:55