Need Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sweet
Forum Newbie
Posts: 3
Joined: Fri Sep 05, 2008 12:38 pm

Need Help

Post by sweet »

Hey Guys,

Im new to php or let say new to the web world. And now I'm doing something simple for you guys but so complicated for me.

Now the web site displays a page title of : Main Page - Philippines Expat Wiki for the first page. The code that does this is here:

<title><?php $this->text('pagetitle') ?></titles->text('pagetitle')>

I want to change this so that it shows the words "Angeles City Life - Philippines Expat Wiki" for just the first page. How will I write a php code that has an if statement that checks the code and prints the correct title.

Thanks,
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Need Help

Post by jayshields »

Have you got some means of knowing if it is the first page or not?
sweet
Forum Newbie
Posts: 3
Joined: Fri Sep 05, 2008 12:38 pm

Re: Need Help

Post by sweet »

Actually its the main page title...

Thanks
sweet
Forum Newbie
Posts: 3
Joined: Fri Sep 05, 2008 12:38 pm

Re: Need Help

Post by sweet »

Eventually I found the right way to do it.

Thanks :D
Post Reply