Render controller is only for displaying data to user.
Surface controller is for interaction (I use this for interaction mainly ajax, or forms)
What if I have a form that the user enters data into and when they click Search, it displays data to the user, so would I use a RenderMvcController and SurfaceController? How do I pick when I have user interaction and rendering data?
If you have not already seen it I highly recommend https://our.umbraco.org/projects/developer-tools/hybrid-framework/ its a whole project with good practice on using mvc and umbraco, plenty of good things you can use will also give you good idea about surface and hijack controllers.
RenderMvcController vs SurfaceController?
I saw the statement:
My Approach is:
Render controller is only for displaying data to user. Surface controller is for interaction (I use this for interaction mainly ajax, or forms)
What if I have a form that the user enters data into and when they click Search, it displays data to the user, so would I use a RenderMvcController and SurfaceController? How do I pick when I have user interaction and rendering data?
Saied,
If you have not already seen it I highly recommend https://our.umbraco.org/projects/developer-tools/hybrid-framework/ its a whole project with good practice on using mvc and umbraco, plenty of good things you can use will also give you good idea about surface and hijack controllers.
Regards
Ismail
is working on a reply...