$media->root()

Returns the full root for a file

  • return (string)

Example

echo $media->root();
// i.e. /var/www/yourdomain.com/html/content/some-page/some-file.jpg

Is something missing or incorrect? Edit this page on Github…