classes/Routing/Wildcard.php
public function detectControllerName()
    {
        $pattern = '#/'.$this->controllerNameRegex().'#i';
        if (!preg_match($pattern, $this->path, $matches)) {
            return false;
        }

        return $matches[1];
    }
public function detectControllerName()
    {
        $pattern = '#/'.$this->controllerNameRegex().'#i';
        if (!preg_match($pattern, $this->path, $matches)) {
            return false;
        }

        return $matches[1];
    }
public function detectControllerName ( ) { $ pattern = '#/' . $ this -> controllerNameRegex ( ) . '#i' ; if ( ! preg_match ( $ pattern , $ this -> path , $ matches ) ) { return false ; } return $ matches [ 1 ] ; }
Get just the controller's short name from the path
@return mixed false if not found, otherwise a string like "news" or "slides"
Get just the controller s short name from the path