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, 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.
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?
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.
@Sam, you rock so much!
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.
is working on a reply...