0

Hi all. I'm hoping that one of you could assist me in what may be very obvious to you experienced folks, but what does the 5th line of code saying "head("Home");" do? The include statement already brings up home.php, and I'm not used to a templated website structure. Thanks in advance.

<?
include("include/common.class.php");
include("include/search_form.class.php");
include("include/image.class.php");

head("Home");

include("templates/".template."/home.php");

foot();
?>

Edited by Dani: Formatting fixed

4
Contributors
4
Replies
36
Views
3 Years
Discussion Span
Last Post by carl.potak
0

a user defined function,
found in common.class.php

<useless>
head(pagename);
I use 'pagename' to indicate which menu link does nothing,
you cant go to pagename from pagename, the link is just text
</useless>
I'm assuming your author did as well

Edited by almostbob

0

It calls a function called head() and passes in the string 'Home' as a parameter. It does whatever that function does.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.