ElbertF/Swiftlet — Issue #27: Warning: Invalid callback Swiftlet\App::error, cannot access private method Swiftlet\App::error()
Author: va5ja
Created: 2012-02-01 13:28:38+00:00
State: open

Hey,

First of all great tiny little useful framework. Am working on it at the moment.

But if I put a variable $_POST['bla'] in a controller and with no error reporting I get nothing.
But if I use error reporting then I get this error:

Warning: Invalid callback Swiftlet\App::error, cannot access private method Swiftlet\App::error() in controllers/IndexController.php on line 16

Apparently you can't reach error() function that is in App from a Controller.

It's a warning and it can be dismissed but I don't like just ignoring warnings.