Skip to content

Instantly share code, notes, and snippets.

@hhamon
Created April 27, 2012 15:52
Show Gist options
  • Select an option

  • Save hhamon/2510338 to your computer and use it in GitHub Desktop.

Select an option

Save hhamon/2510338 to your computer and use it in GitHub Desktop.

Revisions

  1. Hugo Hamon created this gist Apr 27, 2012.
    21 changes: 21 additions & 0 deletions Module.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    <?php

    namespace NewModule;

    use Zend\EventManager\StaticEventManager;
    use Zend\EventManager\EventDescription as Event;
    use Zend\EventManager\StaticEventManager;

    class Module
    {
    public function init(ModuleManager $manager)
    {
    $events = StaticEventManager::getInstance();
    $events->attach('bootstrap', 'bootstrap', array($this, 'configureView'));
    }

    public function configureView(Event $e)
    {
    die('triggered');
    }
    }