kionez
unread,Jul 22, 2010, 4:06:06 AM7/22/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GluePHP
Hi,
for a catchall method, useful in case of an error handler I've
modified a little bit the function stick, at line 63, I add a:
elseif (method_exists($obj, 'CATCHALL')) {
$obj->CATCHALL($matches);
}
and then, in my code I put at the end of the URL array:
'.*' =>
'_error' # error catchall handler
and finally I create a class error:
class _error {
function CATCHALL() {
echo "ERROR"; # there will be the
error handler..
}
}
in order to catch every kind of method in my application.
Is the right way to enable a catchall method? I do something wrong?
I'm testing it and seems that works fine..
thanks in advance :)
k.