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
Hi I'm having trouble following the umbraco TV instructions for creating surface controls.
I'm following the tutorial: http://umbraco.tv/videos/umbraco-v7/developer/fundamentals/surface-controllers/creating-the-model/
When I create a class it creates
public class ContactFormViewModel { public ContactFormViewModel() { // // TODO: Add constructor logic here // } }
Instead of a namespace
e.g
namespace MyFirstSurfaceController.Model {
public class ContactFormViewModel { }
}
I'm using umbraco v7.0.4 and Visual Studio 2013. Where an I going wrong?
Thanks
Hi Alan
It's not Umbraco issue, it's how Visual Studio handles the file creation.
Can you live with it? You can change Visual Studio settings and make it like you want.
Thanks,
Alex
Ok thanks Alex. I'll change the settings
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Learning Surface controllers
Hi I'm having trouble following the umbraco TV instructions for creating surface controls.
I'm following the tutorial: http://umbraco.tv/videos/umbraco-v7/developer/fundamentals/surface-controllers/creating-the-model/
When I create a class it creates
public class ContactFormViewModel { public ContactFormViewModel() { // // TODO: Add constructor logic here // } }
Instead of a namespace
e.g
namespace MyFirstSurfaceController.Model {
}
I'm using umbraco v7.0.4 and Visual Studio 2013. Where an I going wrong?
Thanks
Hi Alan
It's not Umbraco issue, it's how Visual Studio handles the file creation.
Can you live with it? You can change Visual Studio settings and make it like you want.
Thanks,
Alex
Ok thanks Alex. I'll change the settings
is working on a reply...