How does the orchard deal with multiple module-control-view(similar with areas)

Jan 25, 2011 at 11:01 AM

I find there are many modules, controls and views in different folders, which is similar with "area" machanism in ASP.NET MVC.

But I don't find class "AreaRegistration" is used, why?

Who can give me explanation? Thanks very much in advance.

Coordinator
Jan 25, 2011 at 6:32 PM
Hi,

Controllers are one of the things Orchard recognizes when a module feature is enabled. They're registered with IOC container by "area.controller" name. When a request hits a route with {area} and {controller} tokens an instance of that controller is resolved by that name.

So the area registration wasn't needed in Orchards case because it already had a form of modular discover and registration.

- Lou

From: freeflying1222
Sent: Tuesday, January 25, 2011 4:02 AM
To: Louis DeJardin
Subject: How does the orchard deal with multiple module-control-view(similar with areas) [orchard:243190]

From: freeflying1222

I find there are many modules, controls and views in different folders, which is similar with "area" machanism in ASP.NET MVC.

But I don't find class "AreaRegistration" is used, why?

Who can give me explanation? Thanks very much in advance.