New controller and view display outside them

Topics: Customizing Orchard
Jan 26, 2012 at 2:17 PM

Hi,

I have module name property, That module admin functionality working fine. I have created search functionality. I have created new controller called

PropertysearchController  and i created  View under   Views/Propertysearch/Index.cshtml

 

when i called Propertysearch/index i can see my page, But there is no theme, Its only my development page, Why  cant i  see them?

 

lakmal

Jan 26, 2012 at 3:37 PM

You need to add the [Themed] Attribute to the controller:

[Themed]
public class MyController : Controller {

   // My Awesome Code :)

}

 

Regards,

Dave

Jan 26, 2012 at 4:04 PM

Hi,

 

Its working fine . thank u

 

lakmal