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
I created an empty ASP.NET empty web application and installed Umbraco through nuget. I also added bootstrap to it. Since I installed an empty project, I don't get the controller intellisense (for example, when you right click on the controllers folder in MVC, it gives you the option to add a controller), so is their a preferred method to incorporating the controllers in the project? Is it do to it manually? or should is it better to have it in a separate project?
Because u choose blank ASP.NET application project in visual studio 2013 and controller is the part of MVC application
Choose MVC application than your controller will be show when u right click on controller folder
But then again, you shouldn't use regular MVC controllers inheriting System.Web.Mvc.Controller in an Umbraco project.
You should probably use an Umbraco.Web.Mvc.SurfaceController, and in that case the right-click thingy is useless.
Just make a folder called Controllers, add a regular class and manually inherit it from SurfaceController. It will get URLs as described here:
When you create you project at the start click (Visual Studio 2012) choose .NET Framework 4.5.1 and select Asp.NET MVC 4 Project.
Install Umbraco over the top of that. Once finished, you will be able to right click the controller folder and create your controller.
You can use standard MVC controllers but its better to use SurfaceController or UmbracoApiController. You can read up why on the documentation section of this site.
Hope that helps!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted