Created
June 8, 2012 17:53
-
-
Save andriesss/2897223 to your computer and use it in GitHub Desktop.
why are these methods not called?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Passy; | |
use Zend\ModuleManager\ModuleManager, | |
Zend\EventManager\StaticEventManager, | |
Zend\Mvc\MvcEvent; | |
class Module | |
{ | |
public function init(ModuleManager $moduleManager) | |
{ | |
$events = StaticEventManager::getInstance(); | |
$events->attach('bootstrap', 'bootstrap', array($this, 'initView'), 100); | |
$events->attach('bootstrap', 'bootstrap', array($this, 'initRouter'), 200); | |
} | |
public function initView() | |
{ | |
die('init view reached'); | |
} | |
public function initRouter() | |
{ | |
die('init router reached'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This causes: Fatal error: Uncaught exception 'Zend\View\Exception\RuntimeException' with message 'Zend\View\Renderer\PhpRenderer::render: Unable to render template "404"; resolver could not resolve to a file' in library\Zend\View\Renderer\PhpRenderer.php on line 462