public function initializeViewHelper(MvcEvent $e)
    {
        $viewhelperManager = $this->serviceManager->get('ViewHelperManager');
        if ($viewhelperManager->has('InsertFile')) {
            $insertFile = $viewhelperManager->get('InsertFile');
            $insertFile->attach(FileEvent::GETFILE, array($this, 'getFile'));
            $insertFile->attach(FileEvent::RENDERFILE, array($this, 'renderFile'));
            $insertFile->attach(FileEvent::INSERTFILE, array($this, 'collectFiles'));
        }
    }
public function initializeViewHelper(MvcEvent $e)
    {
        $viewhelperManager = $this->serviceManager->get('ViewHelperManager');
        if ($viewhelperManager->has('InsertFile')) {
            $insertFile = $viewhelperManager->get('InsertFile');
            $insertFile->attach(FileEvent::GETFILE, array($this, 'getFile'));
            $insertFile->attach(FileEvent::RENDERFILE, array($this, 'renderFile'));
            $insertFile->attach(FileEvent::INSERTFILE, array($this, 'collectFiles'));
        }
    }
public function initializeViewHelper ( MvcEvent $ e ) { $ viewhelperManager = $ this -> serviceManager -> get ( 'ViewHelperManager' ) ; if ( $ viewhelperManager -> has ( 'InsertFile' ) ) { $ insertFile = $ viewhelperManager -> get ( 'InsertFile' ) ; $ insertFile -> attach ( FileEvent :: GETFILE , array ( $ this , 'getFile' ) ) ; $ insertFile -> attach ( FileEvent :: RENDERFILE , array ( $ this , 'renderFile' ) ) ; $ insertFile -> attach ( FileEvent :: INSERTFILE , array ( $ this , 'collectFiles' ) ) ; } }
hook into the Rendering of files
the manager to hook in is the viewhelper 'insertfiles'

@param \Zend\Mvc\MvcEvent $e
hook into the Rendering of files the manager to hook in is the viewhelper insertfiles