ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with path.php global variables

July 19, 2012 11:05am

Subscribe [1]
  • #1 / Jul 19, 2012 11:05am

    Antenna

    87 posts

    Hi,

    I’m having a go at setting up a multi-language site and am following this article: Multi language site alternative

    I’ve added some global variables to path.php as describe in the article, e.g:

    $global_vars = array(
     "country_code" => "de",
     "language" => "german"
    ); // This array must be associative

    but if I then place a {country_code} tag in my template it doesn’t output ‘de’, it just outputs ‘{country_code}’ on the page.

    Am I missing something?

    Thanks,

    Andy

  • #2 / Jul 19, 2012 11:07am

    Antenna

    87 posts

    Doh! Just read further down that article about modifications for EE2 - didn’t realise the article was written for EE1 primarily.

    Please ignore me 😊

  • #3 / Jul 19, 2012 5:18pm

    Kevin Smith

    4784 posts

    Consider it ignored. 😉

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases