Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

fTemplate Issue

posted by anonymous 8 years ago

Hi, am a non english devpopper , and I don't speak english well ; so: I use fTemplate? class, and whene am enabling minification I have some issue with js, css files, I get allways the path in the output, not the url, like <script type="text/javascript src="c:/www/wamp/myfolder/"></script>; the path is not translated to a valid URL. I've tryed all the ways that I found in Documentation Now I give-up. so please give me the solution thanks

fTemplating uses fFilesystem to remove the document root from file path to create the URL. See fFilesystem - Translation for details.

posted by wbond 8 years ago

thanks for your help, I've tried this One but nothing happend;

but I solved the problem using the fBuffer class: replacing all ROOT_PATH with ROOT_URL at the bottom of my script

//after flourish lib init we use the fBuffer  class
fBuffer::start();

/* .... stuff .... */

//at the bottom of your script do this 
 
    fBuffer::replace(ROOT_PATH, ROOT_URL); 
    fBuffer::stop();

thanks for every One

posted by anonymous 8 years ago