Quantcast

ZF2 display errors

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

ZF2 display errors

Ralf Eggert
Hi,

In have set up the ZF2 sample application from the manual and it works
as expected. But I wonder how can I configure the application to display
all errors and warnings. At the moment there are only written to the
apaches error log.

Within the ZF1 there was the simple setting in the application.ini:
phpsettings.display_errors = 1

How can I manage this within ZF2?

Best regards,

Ralf

--
Ralf Eggert
Geschäftsführer

Travello GmbH
An der Eiche 15
25421 Pinneberg

Geschäftsführer: Ralf Eggert
Amtsgericht Pinneberg HRB 6112 PI

Tel: 04101/8529401
Fax: 04101/8529402
E-Mail: [hidden email]
Web: http://www.travello.de

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ZF2 display errors

Marco Pivetta
ZF2 doesn't modify the environment anymore. You'd probably want to handle
this somewhere early in your bootstrap process...

Marco Pivetta

http://twitter.com/Ocramius

http://marco-pivetta.com



On 13 August 2012 11:30, Ralf Eggert <[hidden email]> wrote:

> Hi,
>
> In have set up the ZF2 sample application from the manual and it works
> as expected. But I wonder how can I configure the application to display
> all errors and warnings. At the moment there are only written to the
> apaches error log.
>
> Within the ZF1 there was the simple setting in the application.ini:
> phpsettings.display_errors = 1
>
> How can I manage this within ZF2?
>
> Best regards,
>
> Ralf
>
> --
> Ralf Eggert
> Geschäftsführer
>
> Travello GmbH
> An der Eiche 15
> 25421 Pinneberg
>
> Geschäftsführer: Ralf Eggert
> Amtsgericht Pinneberg HRB 6112 PI
>
> Tel: 04101/8529401
> Fax: 04101/8529402
> E-Mail: [hidden email]
> Web: http://www.travello.de
>
> --
> List: [hidden email]
> Info: http://framework.zend.com/archives
> Unsubscribe: [hidden email]
>
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ZF2 display errors

Ralf Eggert
Hi,

Marco Pivetta schrieb am 13.08.2012 11:37:
> ZF2 doesn't modify the environment anymore. You'd probably want to handle
> this somewhere early in your bootstrap process...

Ok, so will \Application\Module::onBootstrap() be the right place for
application wide settings and \Whatever\Module::onBootstrap() to
activate error display only for a Whatever module?

Thanks and best regards,

Ralf

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ZF2 display errors

Marco Pivetta
I think so. If you don't need to make such decisions based on config, you
can do it early in a module implementing the init method (
https://github.com/zendframework/zf2/blob/master/library/Zend/ModuleManager/Feature/InitProviderInterface.php)
Marco Pivetta

http://twitter.com/Ocramius

http://marco-pivetta.com



On 13 August 2012 11:53, Ralf Eggert <[hidden email]> wrote:

> Hi,
>
> Marco Pivetta schrieb am 13.08.2012 11:37:
> > ZF2 doesn't modify the environment anymore. You'd probably want to handle
> > this somewhere early in your bootstrap process...
>
> Ok, so will \Application\Module::onBootstrap() be the right place for
> application wide settings and \Whatever\Module::onBootstrap() to
> activate error display only for a Whatever module?
>
> Thanks and best regards,
>
> Ralf
>
> --
> List: [hidden email]
> Info: http://framework.zend.com/archives
> Unsubscribe: [hidden email]
>
>
>
Loading...