tamplate system

Post here is you are having problems with any of the tutorials.
Post Reply
bona
Posts: 5
Joined: Mon Jun 27, 2011 5:41 pm

tamplate system

Post by bona »

Hi........ :roll:

I have a question here.

How can I add page titles? In the current version, all page titles are "Better PHP: Template System". But in a real site, it should be like "Home - Better PHP: Template System", "News - Better PHP: Template System", etc. different for each page.
I am 25 & like to play casino!
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: tamplate system

Post by jacek »

One way is to base the title on the name of the page, ie
<title>BetterPHP: <?php echo uc_words($_GET['page']); ?></title>
Image
Post Reply