Page.Title equivalent in PHP -
i want change title of php pages dynamically since headers , footer sections include files cannot use <title><?php echo $title;?></title>
kind of solution.
i wondering if there solution such 1 in asp.net page.title = "some title";
maybe $page->set_title('programmers palace');
many thanks...
since headers , footer sections include files cannot use
<title><?php echo $title;?></title>
kind of solution.
you can. because files included doesn't mean can't echo things there.
if had page
object...
index.php
<?php $page = new page('programmers\' palace'); include 'includes/header.php';
includes/header.php
<head> <title><?php echo $page->gettitle(); ?></title> </head>
Comments
Post a Comment