Welcome Guest, Not a member yet? Register   Sign In
Writable directory question
#1

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:
Code:
<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:
Code:
<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.

P.S
Jim Parry answered me: I can point out that only folders/files underneath "public" are intended to be browser accessible. The writable folder isn't.
Does it mean that /writable folder serves only for something like cache saving, and actions like user file saving should be done to "public" folder?
Reply


Messages In This Thread
Writable directory question - by mally - 02-13-2017, 03:10 PM
RE: Writable directory question - by kilishan - 02-13-2017, 08:24 PM
RE: Writable directory question - by mally - 02-14-2017, 01:33 AM
RE: Writable directory question - by InsiteFX - 02-14-2017, 07:05 AM
RE: Writable directory question - by Diederik - 02-14-2017, 12:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB