I m new to Umbraco and doing some test / learning work.
I have created a new controller named Home2, please note I don't have a doc type for Home2. I want to create non Umbraco view/ pages that can work with Umbraco. On running I m getting below error:
Below is my code for Controller and view, please guide what I should do to create custom controllers and views that can work with Umbraco ? Do I need to create document type even for non Umbraco types ?
Controller:
namespace Web.Controllers { public class Home2Controller : Umbraco.Web.Mvc.RenderMvcController { // // GET: /Home/
public override ActionResult Index(RenderModel model)
{
//Do some stuff here, then return the base method
return base.Index(model);
}
}
}
View:
@{ ViewBag.Title = "Index"; }
Index
Hello welcoem to our page....
Thanks