Copied to clipboard

Flag this post as spam?

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


  • Vold Hooker 15 posts 35 karma points
    Feb 06, 2013 @ 10:59
    Vold Hooker
    0

    MVC, custom models and template inheritance

    The issue I have is described here : stackoverflow question

    Basically I want to use a custom model in a view that inherits a template. 

    Instead of using child actions I am doing route hijacking based on the selected template for a given document type.

    More specifically I have a cart template I want to feed a custom model, but I want this cart template to use my master template and I want to do it using route hijacking.

    Is the only way really to use child actions, which if I understand it correctly are more to be used for reusable partial views?

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft