[eluser]hepp[/eluser]
If you try to call a private method from the url, CI will fail ungracefully showing the php error:
Code:
First argument is expected to be a valid callback, 'Your_controller::method' was given
Proposed fix in CodeIgniter.php line 217 is to replace
Code:
if ( ! method_exists($CI, $method))
with
Code:
if ( ! method_exists($CI, $method) || ! is_callable(array($CI, $method)))
That way I don't have to prefix my methods with an underscore to keep them private