Menu

calling globals within templates

Help
rheo
2005-05-04
2012-10-11
  • rheo

    rheo - 2005-05-04

    I am editing the templates found in default because i can't figure out how to change the default template.

    I need to check authentication on my site and include some libraries.

    when i use $_SERVER[DOCUMENT_ROOT] in the template it tells me that it is not defined.

    where should I call my libraries from?

     
    • Reini Urban

      Reini Urban - 2005-05-16

      Don't edit default!
      Just add your template as seperate dir and themeinfo.php as done with smaller, and add only your changed template files.

      $_SERVER[DOCUMENT_ROOT] is not defined?
      So it is not defined. It depends on your specific php installation.
      You might try to use the phpwiki globals and constants instead, defined in lib/IniConfig.php
      $_SERVER e.g. requires php-4.3

       
    • rheo

      rheo - 2005-05-16

      bump ?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.