Skin/Templatevar: phpinclude

Includes a php-file into the output. The contents of the file is parsed by the PHP parser, so be careful. Nucleus skin/templatevars are not parsed! (see parsedinclude and include for other include options).

Arguments

  • filename: the name of the file to be included (either relative to the position of index.php, or absolute)

Notes

  • This tag is affected by the parser settings IncludeMode and IncludePrefix
  • Your file will be included using the standard php include() command. This command will be called from inside a class method, so you'll need to declare which global variables you want to access yourself. Most of the standard variables are automatically declared global by Nucleus itself.

Skintypes

all

Examples

<%phpinclude(filename.php)%>
<%phpinclude(/home/user/myself/filename.php)%>
Skin/Template Vars