Location: PHPKode > projects > v-creator > v-creator_1.3-pre3/examples/pageDriver.php
<?php
	/**
	 * Simple wrapper for basic v-creator pages that do not need any
 	 * special processing in their PHP driver page. Simply invoke the
 	 * HTML page using a link of the form:
 	 *
 	 * pageDriver.php?page=URL
	 *
	 * Where the URL is the page to be parsed by v-creator and displayed.
 	 * For example:
	 *
	 * pageDriver.php?page=example.vchtml
 	 *
 	 * $Revision: 1.3 $  $Date: 2005-09-26 12:56:52 $
 	 */

	require_once($HTTP_SERVER_VARS['DOCUMENT_ROOT'].'/project_config.php');
	require_once(VC_ROOT.'classes/VCPage.php');

	VCPage::startPage();
	
	// If no page is specified for the page driver use a default.
	if (!VCPage::getVC_data('page')) $VC_data['page'] = 'index.vchtml';
	
	VCPage::endPage(VCPage::getVC_data('page'), null );
?>
Return current item: v-creator