Author Topic: Supressing warnings from missing controllers  (Read 532 times)

0 Members and 1 Guest are viewing this topic.

Offline cmiddlebrookTopic starter

  • Irregular
  • Posts: 21
    • View Profile
Supressing warnings from missing controllers
« on: November 20, 2009, 10:33:06 AM »
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