Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Example: Getting a configuration value
  1. <?php
  2. //Get the global mainframe object.
  3. //This has type JSite if called from the front-end, JAdministrator from the back-end.
  4. global $mainframe;
  5.  
  6. //Retrieve the FTP host value from the configuration.php file.
  7. echo $mainframe->getCfg'ftp_host' );
  8.  
  9. //This might produce:
  10. //   ftp.ftphost.com
  11. //
  12. ?>

Documentation generated on Mon, 05 Mar 2007 20:52:15 +0000 by phpDocumentor 1.3.1