Where to take the address to the main and site description on the CMS Joomla



  • Hey, everybody, I thought I'd try to write a CMS Joomla 3 template, and now I'm facing a problem like this, tell me where Joomla 3 will take the address of the main page of the site as well as his name and description. And where it all goes?



  • http://php.net/manual/en/function.parse-url.php

    <?php 
        $a = parse_url(JFactory::getURI());
        var_dump($a['host']);
    

    OR

    https://docs.joomla.org/API15:JFactory_Class

    https://docs.joomla.org/API15:JURI

    <?php 
        &JFactory::getURI()->getHost();
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2