public function path($path)
    {
        $path  = strtolower(trim($path));
        $first = substr($path, 0, 1);
        
        if ($first == '@' && isset($this->aliases[$path])) {
            $path = $this->aliases[$path];
            
        } elseif ($first == '/') {
            $path = preg_replace('/\\//', $this->root() . '/', $path, 1);
            
        }
        if ($path = realpath($path)) {
            $path = static::clean($path);
        }
        
        return $path;
    }
public function path($path)
    {
        $path  = strtolower(trim($path));
        $first = substr($path, 0, 1);
        
        if ($first == '@' && isset($this->aliases[$path])) {
            $path = $this->aliases[$path];
            
        } elseif ($first == '/') {
            $path = preg_replace('/\\//', $this->root() . '/', $path, 1);
            
        }
        if ($path = realpath($path)) {
            $path = static::clean($path);
        }
        
        return $path;
    }
public function path ( $ path ) { $ path = strtolower ( trim ( $ path ) ) ; $ first = substr ( $ path , 0 , 1 ) ; if ( $ first == '@' && isset ( $ this -> aliases [ $ path ] ) ) { $ path = $ this -> aliases [ $ path ] ; } elseif ( $ first == '/' ) { $ path = preg_replace ( '/\\//' , $ this -> root ( ) . '/' , $ path , 1 ) ; } if ( $ path = realpath ( $ path ) ) { $ path = static :: clean ( $ path ) ; } return $ path ; }
Translate path alias into a actual path or build path.
Return absolute path.

@param string $path Path to the file

@return mixed|string
Translate path alias into a actual path or build path . Return absolute path .