Copied to clipboard

Flag this post as spam?

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


  • Kevin Lawrence 183 posts 350 karma points
    Jul 11, 2013 @ 15:19
    Kevin Lawrence
    0

    MVC: Do we really need to name Surface Controllers "Surface"

    I've heard that the recommended naming convention for surface controllers is to include Surface in the controller name (i.e. AccountSurfaceController).

    In practice, I've never had a problem just sticking with the standard (i.e. AccountController), however can someone enlighten me as to why Surface needs to be included in the controller name? When you start build up a lot of controllers the View folder can look a bit ugly.

    Thanks

    Kev

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Jul 11, 2013 @ 15:21
    Sebastiaan Janssen
    100

    Nope. :-)

    We removed that limitation (which actually was only enforced when you were trying to include surfacecontrollers in plugins).

  • Kevin Lawrence 183 posts 350 karma points
    Jul 11, 2013 @ 15:22
    Kevin Lawrence
    0

    Thanks Sebastiaan for responding so quickly :-)

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Jul 23, 2013 @ 16:44
    Ismail Mayat
    0

    I guess the scaffold template thing needs updating?

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Jul 23, 2013 @ 16:45
    Sebastiaan Janssen
    0

    Sure, but it's no crime if you still name them that way (nothing will break).

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Jul 23, 2013 @ 16:46
    Ismail Mayat
    0

    true true 

Please Sign in or register to post replies

Write your reply to:

Draft