title: ZF2 - Get controller name into layout/views
body: <p>I know with ZF1 you would retrieve the module/controller name using custom View Helpers that would get the singleton frontController object and get the name there.</p>
  
  <p>Using ZF2 as they've abolished alot of the singleton nature of the framework and introduced DI where I've specified aliases for all of my controllers within this module... I can imagine I would get it through accessing the DI or perhaps injecting the current name into the layout.</p>
  
  <p>Anyone got any idea how you would do it. I guess there a hundred different ways but after sniffing about the code for a few hours I can't really figure out how its meant to be done now.</p>
  
  <p>The reason I wanted the controller name is to add it to the body as a class for specific controller styling.</p>
  
  <p>Thanks, Dom</p>