Copied to clipboard

Flag this post as spam?

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


  • Graham Thomson 56 posts 136 karma points
    Dec 09, 2016 @ 16:58
    Graham Thomson
    0

    Developer - Form question - Surface controller

    Hi

    I am following tutorials in Umbraco.TV.

    In the Developer - Surface Controller - Creating the model video

    At 35 secs in the tutor says in Visual Studio to go to the list on the right panel and right click on the Model folder....

    I cannot see a folder called Model - I have others like Media, obj,scripts, Views...... but no model.

    I am in Visual Studio 2015 Community edition and the video is using a previous version.

    Anybody got any ideas to help me?

    Thanks Graham

  • Marc Goodson 2144 posts 14347 karma points MVP 8x c-trib
    Dec 09, 2016 @ 21:10
    Marc Goodson
    0

    Hi Graham

    You can just right click and create the folder called 'Models'

    Essentially when you create a new project in Visual Studio to use with Umbraco, you create an empty template, but you have the option to tick a box to add folders and core references,

    enter image description here

    if you check the MVC box it will create the folders that the conventions of MVC suggest you use, eg a folder for: Models Views Controllers

    but it is completely ok if you are up and running just to create these folders manually...

    enter image description here

  • John Bergman 483 posts 1132 karma points
    Dec 10, 2016 @ 00:32
    John Bergman
    0

    If you are inside an Umbraco project, the models folder is not included in the project be default, you would need to "show all files" in the toolbar about the solution in the solution explorer to see the models folder.

  • David Peck 687 posts 1863 karma points c-trib
    Dec 10, 2016 @ 07:41
    David Peck
    0

    Just to say, the Modal folder is a convention. Call it 'Captain Fancy Pant's Snazy Objects' if that is what floats your boat.

  • Graham Thomson 56 posts 136 karma points
    Dec 13, 2016 @ 19:56
    Graham Thomson
    0

    Many thanks all for the replies above!

Please Sign in or register to post replies

Write your reply to:

Draft