public function base($path = null)
    {
        if ($path !== null) {
            $path = trim($path, '/');
            $this->base = $path ? '/' . $path : null;
            $this->baseRoute = [];
        }

        return $this->base;
    }
public function base($path = null)
    {
        if ($path !== null) {
            $path = trim($path, '/');
            $this->base = $path ? '/' . $path : null;
            $this->baseRoute = [];
        }

        return $this->base;
    }
public function base ( $ path = null ) { if ( $ path !== null ) { $ path = trim ( $ path , '/' ) ; $ this -> base = $ path ? '/' . $ path : null ; $ this -> baseRoute = [ ] ; } return $ this -> base ; }
Get or set base path for the pages.

@param  string $path

@return string
Get or set base path for the pages .