how to check to see if i am on the home page using php?

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
maddunr
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Thu Oct 06, 2005 4:43 pm

how to check to see if i am on the home page using php?

Post by maddunr » Thu Jan 24, 2008 5:13 pm

Hello,

I need to find a way to check if I am on the home page. I know how to figure out if I am on other pages.. for example

Code: Select all

if (($GLOBALS['page'] != 'shop.browse') && ($GLOBALS['page'] != 'shop.product_details'))
to see if I am on either of these virtuemart component pages.

But how do I check to see if I am on the home page?
  ???

Pls help!
-V

User avatar
infograf768
Joomla! Engineer
Joomla! Engineer
Posts: 366
Joined: Fri Aug 12, 2005 3:47 pm
Location: •Translation Matters•

Re: how to check to see if i am on the home page using php?

Post by infograf768 » Thu Jan 24, 2008 5:19 pm

Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.

maddunr
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Thu Oct 06, 2005 4:43 pm

Re: how to check to see if i am on the home page using php?

Post by maddunr » Thu Jan 24, 2008 5:28 pm

Yes :) That totally helped. Thank you sooooo much for the quick reply.

- V


Post Reply