Log in

View Full Version : Small question


Snake~eyes
02-04-2002, 07:24 PM
Okay.. how the heck do you create the variables. So that footer goes into $footer

so where ever you put $footer it will do that?

How can i create my own template and variable to do so liek that?

Admin
02-05-2002, 07:00 AM
This code:
eval("\$variable = \"".gettemplate("template")."\";");
puts the contents of "tempate" in the $variable variable... that's pretty much all there is to it.

For example, footer template:
eval("\$footer .= \"".gettemplate('footer')."\";");
(global.php)

Snake~eyes
02-05-2002, 06:05 PM
eval("\$footer .= \"".gettemplate('footer')."\";");

So the first part \$footer is the name of the variable? and the gettemplate('footer') is the template name?

So i just put the line of code at the top of a template and where every i put $footer is where it would show?



thx :D