...
Warning |
---|
Do not use this mechanism for accessing the Registry database. Only present public, generally static information, otherwise you risk compromising Registry security and exposing restricted information. If you need to work with Registry content, you most likely need to write a Registry Plugin. |
Publishing Images and Other Media
Images or any other static content may be served from the /local directory much as described above. Follow these steps:
- Create a directory in which to store your media in /local/webroot/, for example /local/webroot/media.
Create a symlink to the directory within /app/webroot to allow the webserver to serve these files
Code Block language bash title Add Symlink from within /app/webroot cd app/webroot ln -s ../../../local/webroot/media
- Ensure that /local/webroot/media is owned by the web server user (e.g. apache)