You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm sorry if I asked not in correct branch or project.
My question is about work with /writable directory.
Totally like the approach of setting index.php into separate folder and dividing writable files as separate.
But when I tried to recreate the workflow for myself, I faced the problem, that whenever I put for example:
/writable/minified - stylesheets and scripts that are dynamically minified and written during the load.
/writable/uploads/avatar.gif - dummy image file for test.
How can I access them from frontend side, for example in header, while loading stylesheets: <link rel='stylesheet' type='text/css' href='[domain]/writable/minified/core.min.css'>
And I understand that by logic you simply can't access secured and outer directory. Then how to get the content of the file by link? Through some specific helper and read of file?
Or for e.g. for load of image: <img class="preloader-logo" src="[domain]/writable/uploads/avatar.gif" />
anywhere on the frontend etc.
Thank you for information and really hope you will not delete question or can answer me directly. I'm confused about this one.
The text was updated successfully, but these errors were encountered:
Support questions should be posted on our forum
Rather than close your "issue" immediately, I can point out that only folders/files underneath "public" are intended to be browser accessible. The writable folder isn't.
You could modify application/Config/Paths.php, and specify a folder inside public, but you would then have to be careful not to store anything sensitive there.
Now I can close this "issue".
Make symlink from directory /var/www/your-domain.com/writable/pseudo-public to /var/www/your-domain.com/public
When the frontend accesses www.your-domain.com/pseudo-public/minified/style.css
the backend will use symlink and point to /var/www/your-domain.com/writable/pseudo-public/minified/style.css
At least it worked for me.
Don't create a symlink to the /writable directory. It may contain confidential information.
Hi,
I'm sorry if I asked not in correct branch or project.
My question is about work with /writable directory.
Totally like the approach of setting index.php into separate folder and dividing writable files as separate.
But when I tried to recreate the workflow for myself, I faced the problem, that whenever I put for example:
How can I access them from frontend side, for example in header, while loading stylesheets:
<link rel='stylesheet' type='text/css' href='[domain]/writable/minified/core.min.css'>
And I understand that by logic you simply can't access secured and outer directory. Then how to get the content of the file by link? Through some specific helper and read of file?
Or for e.g. for load of image:
<img class="preloader-logo" src="[domain]/writable/uploads/avatar.gif" />
anywhere on the frontend etc.
Thank you for information and really hope you will not delete question or can answer me directly. I'm confused about this one.
The text was updated successfully, but these errors were encountered: