Return to Snippet

Revision: 4817
at January 22, 2008 10:56 by withremote


Initial Code
<?php
/* THE CODE BELOW CONTROLS THE BODY OF THE PAGE. XCR IS A VARIABLE THAT IS USED IN THE NAVIGATION TO PLUG IN THE APPROPRIATE CONTENT INTO THIS SPACE. */
			if ($xcr != "")    { 
			require ("$xcr"); 
			} else { 
			require ("home.php"); 
			} 
			?>

Initial URL


Initial Description
used as "http://www.somesite.com/index.php?xcr=page.php"
page.php is plugged into the template index.php which hold the shell of a site.

Initial Title
php index template include

Initial Tags
template

Initial Language
PHP