2
Guys need to get the last position after giving a explode
. How do I do?
$geturl = explode('/', $_SERVER['REQUEST_URI']);
self::$modulo = isset($geturl[2]) ? $geturl[2] : '';
self::$funcao = isset($geturl[3]) ? $geturl[3] : '';
self::$chave = isset($geturl[4]) ? $geturl[4] : '';
Note: It can happen from $chave
be void