0 users online. Create an account or sign in to join them.Users

Search

Hi probably really noob but how do you reference workspace directory from within extension PHP?

When I write

WORKSPACE

It seems to fetch the server folder path but I want the URL to display a graphic.

how do you reference workspace directory from within extension

It's hardcoded, there's no constant for this. URL . '/workspace'.

Sorry having a silly moment, in frontend dev {$workspace} is equivalent to {$root}/workspace so I should have asked for $root and I'll write /workspace on the end of that.

Of course I should be looking for how to write $root in PHP.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details