filp/whoops — pull request #31 by zsilbi (2013-04-12 14:41:29+00:00)
Title: Zend Framework 2 Integration

Response for issue #30

Instructions:

- add Whoops as a module to you app (/vendor/Whoops)
- Whoops must be the first module:

```php
'modules' => array(
'Whoops',
'Application'
)
```
- move Module.php from /Whoops/Provider/Zend/Module.php to /Whoops/Module.php
- use optional configurations in your controller config:

```php
return array(
'view_manager' => array(
'display_not_found_reason' => true,
'display_exceptions' => true,
'json_exceptions' => array(
'display' => true,
'ajax_only' => true,
'show_trace' => true
)
),
);
```

- NOTE: ob_clean(); is used to remove previous output, so you may use ob_start(); at the beginning of your app (index.php)