module !== null ? $controller->module->id . $del: ''; $act = $action; if ($action == ''){ if ($controller->action !== null){ $act = $controller->action->id; } else { $act = $controller->defaultAction; } } $contrArr = explode($del, $controller->id); $contrArr[sizeof($contrArr) - 1] = ucfirst($contrArr[sizeof($contrArr) - 1]); $con = implode(".", $contrArr); $auth_item = $mod . $con . ucfirst($act); return $auth_item; } }