Download on GitHub

PHPZevelop

Meta data

To change the default meta data for the framework you can change the values in "config.php":

"PageTitle"		=> "",
"MetaTitle"		=> "PHPZevelop PHP FrameWork",
"MetaDescription"	=> "PHP framework for ease of use and adaptability",
"MetaKeywords"		=> "PHP, Framework, Zephni"

These definitions can be placed in individual pages so the defaults can be overwritten, for example at the top of this file it uses:

<?php
	/* Page setup
	------------------------------*/
	$PHPZevelop->OverrideObjectData("CFG", array(
		"PageTitle"  => "MetaData"
	));
?>

.. so as you can see the title of this page is now the site title (Which is set in "global.php") followed by a " - " and then the $PHPZevelop->CFG->PageTitle. If no page title is passed and the default page title is set to an empty string, only the site title will appear. If you wish to override any of the way the title appears, it can by edited manually on line 7 of "inc/header.php":

<title><?php
echo $PHPZevelop->CFG->SiteTitle.($PHPZevelop->CFG->PageTitle != "" ? " - ".$PHPZevelop->CFG->PageTitle : "");
?></title>


© PHPZevelop 2017 - @_Zephni (Craig Dennis)