title: How to get the controller name, action name in Zend Framework 2
body: <p>I have a default module in Zend Framework 2:</p>
  
  <pre><code>namespace Application\Controller;
  
  use Zend\Mvc\Controller\AbstractActionController;
  use Zend\View\Model\ViewModel;
  
  class IndexController extends AbstractActionController
  {
      public function indexAction()
      {
          return new ViewModel();
      }
  }
  </code></pre>
  
  <p>How can I get the name of the current controller or action name ... and pass it to the view and/or layout?
  Have to say that I am just starting with the ZF2 framework.</p>