Posted By

bubaphex on 09/23/11


Tagged

joomla


Versions (?)

Load on homepage only


 / Published in: PHP
 

Used in template's, load this if home page etc

  1. $uri = $_SERVER['REQUEST_URI'];
  2.  
  3. // If homepage is Root, if using SEF it will be a full article link
  4. if ($uri == "/") {
  5. echo 'load this';
  6. }

Report this snippet  

You need to login to post a comment.