How (where) to include php-file with variables?
-
Hi!
I have a site in three languages and I use qTranslate to handle the content. I want to change static content as well and have a language file with translations (“translation.php”). An example would be:
$_PAGE_HOME_TEASERTEXT['en'] = "teaser, English"; $_PAGE_HOME_TEASERTEXT['se'] = "teaser, Swedish"; $_PAGE_HOME_TEASERTEXT['de'] = "teaser, German";
I want to include those variables in certain positions all over my site and simply include the translation file (to get access to the variables). But, and here’s the problem, I don’t know where to include it to get it working. Including in index.php or header.php does not give me access in for instance sidebar.php.
So, I want it global over my site and parsed for every page. Where can I include it? (using include(“/home/…./translation.php”);)
Help much appreciated!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How (where) to include php-file with variables?’ is closed to new replies.