Jump to content

Supressing warnings from missing controllers


cmiddlebrook

Recommended Posts

If a user types in an invalid url Zend will throw up some errors and warnings about missing controllers which I don't really want clogging up my log files.

 

I'm using the errorcontroller plugin which catches the exception and prints a friendly message to the user but there is still a php file not found warning displayed. For example if I try and access an invalid page of '/invalid', I'll get the following:

 

2009-11-20T15:31:27+00:00 ERR (3): PHP Warning occurred in C:\xampp\htdocs\code\ZendFramework-1.9.5\library\Zend\Loader.php on line 165

fopen(c:/xampp/htdocs/code/ima-live/application/controllers\InvalidController.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory

 

I've tried using suppressNotFoundWarnings(true) on the auto loader but that doesn't seem to make any difference at all. Any idea how to suppress these?

 

Caroline

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.