Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Installed Umbraco 7.0.1 and added code for surfacecontroller. Same code works fine for Umbraco 6.1.6 but it is not working for Umbraco 7.
When I try /umbraco/surface/homesurface it is giving me 404 error.
public class HomeSurfaceController : Umbraco.Web.Mvc.SurfaceController{ // // GET: /Home/ public ActionResult Index() { return Content("home control"); }}
Not sure what the case was in version 6, but in 7 at least looks like you need to explicity state the action in your URL - so /umbraco/surface/homesurface/index
Andy
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco 7 - Surface Controller not working
Installed Umbraco 7.0.1 and added code for surfacecontroller. Same code works fine for Umbraco 6.1.6 but it is not working for Umbraco 7.
When I try /umbraco/surface/homesurface it is giving me 404 error.
public class HomeSurfaceController : Umbraco.Web.Mvc.SurfaceController
{
//
// GET: /Home/
public ActionResult Index()
{
return Content("home control");
}
}
Not sure what the case was in version 6, but in 7 at least looks like you need to explicity state the action in your URL - so /umbraco/surface/homesurface/index
Andy
is working on a reply...