Wednesday, November 3, 2010

blackHole($controller, $string) leads to "Missing argument 2 for AppController::blackHole()" *+

Hey guys

I've implemented a blackhole in my AppController:

function blackHole($controller, $error) {
trigger_error(__('You have been black holed because something went
horribly wrong!', true), E_USER_WARNING);
die;
}

Sadly I'm getting a "Missing argument 2 for
AppController::blackHole()" when the blackHole is called, but
according to this document my method signature should be valid?!

http://book.cakephp.org/view/1307/blackHole-object-controller-string-error

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: