viewhelper

ViewHelper newable/injectable dilemma

I'm trying to design an application following Misko Heverys insights. It's an interesting experiment and a challenge. Currently I'm struggling with my ViewHelper implementation. The ViewHelper decouples the model from the view. In my implementation it wraps the model and provides the API for the view to use. I'm using PHP, but I hope th...

Which is best to use, ViewHelper or Partial View?

I was creating a viewhelper because there is logic on the rendering of the content. But then I realize that I am hardcoding the html inside the viewhelper which is achievable also using the partial view. Many says that views should not have logic in it. But if i used viewhelper, i need to recompile the project if i need to change the sty...