Welcome Guest, Not a member yet? Register   Sign In
How do I link to files I have created on the file system
#1

[eluser]Unknown[/eluser]
Hi all

I've very new to the codeigniter system and I've got to edit a site that's currently running.

Anyway, I'm generating a file, which I'm storing in the either of the cache directories (system/cache or system/application/cache). I then want to link this new file that I've generated. Unfortunately, we're using url rewriting, so I was wondering if there was a function where I could pass it a directory, and it would rewrite it to a directory that I could then link to the web?

Thanks

Syn
#2

[eluser]whitey5759[/eluser]
I might be wrong but I don't think that is the purpose of those 'cache' folders. Aren't they used for caching by the Output and Database libraries, built into CI?

The way I have done it is to create a directory in the sites root (same level as index.php, system, etc) called say 'downloads' or whatever, and then add this directory name to your 'RewriteCond' statement in your .htaccess file, eg: RewriteCond $1 !^(index\.php|assets|downloads|robots\.txt)




Theme © iAndrew 2016 - Forum software by © MyBB