I have a view that could be called from any of 3 actions from one controller.
But, that view should be slightly different depending on what action caused it (it should display 3 icons or 2 or one depending on action called). Can I check in the view what action caused it so I can use if statement to check whether display each icon or not?
Thank you.
Of course, you can pass
actionvalue directly to the view:But View should not know anything about
Requestproperties, its a Controller logic. I suggest you to pass special flags from your actions:Or set special flag (variable) for every icon.