Categories > TinyButStrong general >

Include paths

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Youri
Date: 2007-12-15
Time: 15:55

Include paths

Hi Skrol,

I need to add content of my subtemplate to main template via

[onload;file='[var.inc_content]';getbody;noerr].

Var inc_content contains path and filename of subtemplate. The problem is that this file is in "hidden" dir outside my home dir. In PHP scripts I solved including other files from this location via

$path = '\xampplite\htdocs\public_html';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);

and it works correctly. But with template it doesn't work. It seems that TBS search for files to include only inside home dir (when I move this dir to home dir it works). Is it possible to mod TBS so it searches at all include paths as regular php scripts?

Thanks!
By: Skrol29
Date: 2007-12-15
Time: 19:36

Re: Include paths

Hi Youri,

TBS 3.3.0-beta search templates and sub-templates in set_include_path().
You should try this version.

By: Youri
Date: 2007-12-17
Time: 00:32

Re: Include paths

Hi Skrol,

somehow I missed release of this beta. It works perfectly. Thank you for quick help!