Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sam 47 posts 153 karma points
    Apr 12, 2013 @ 16:30
    Sam
    0

    v6 Surface Controllers?

    Tried creating a new surface controller as outlined here: http://our.umbraco.org/documentation/Reference/Mvc/surface-controllers

    It is very descriptive on where to put views, but not the controllers and models. I put them in App_Code and followed the naming conventions, but I get a 404 error when I try to access the route.

    I can never tell if the documentation is current or not. Are Surface Controllers a v5 thing that was stripped in v6?

    If it still exists, where are you supposed to put the controllers?

  • Sam 47 posts 153 karma points
    Apr 12, 2013 @ 16:54
    Sam
    101

    Well, after almost a few hours of struggling and searching for an answer, on a whim I tried http://localhost:50344/umbraco/MyArea/MyFormSurface

    My only problem was that I was missing Surface on the end of the URL. I assumed it was accounted for in the routing.

  • Fabio Milheiro 74 posts 136 karma points
    Oct 24, 2013 @ 23:45
    Fabio Milheiro
    0

    @Sam, you rock so much!

  • Robert J. Bullock 386 posts 405 karma points
    Nov 07, 2013 @ 22:24
    Robert J. Bullock
    0

    Sam, you're right: the documentation is a mess and trying to get anything MVC-related done is really confusing right now... We need to clean this situation up. I am hopeful that Umbraco's MVC integration will make things better and easier long term, but right now I think it's a confusing mess.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies