
Jan 14, 2010
Joomla essentials
Joomla is a very great CMS.
I am listing below important variable used in joomla.
JPath is used to get the directory path.
DS — is used as a directory separator.
JPATH_ADMINISTRATOR– Sets the path to /Joomla/administrator
JPATH_BASE — sets the entry to joomla /Joomla
JPATH_CACHE –Sets the cache path /Joomla/cache
JPATH_COMPONENT — Sets the component path /Joomla/components/com_example
JPATH_COMPONENT_ADMINISTRATOR...
read more
Jan 14, 2010
Magento Essentials
I am listing below important variable used in Magento.
<?php
echo Mage::app()->getFrontController()->getRequest()->getHttpHost();
//displays host name
echo Mage::getBaseDir(); //gives physical path of the sites root directory
echo $this->getSkinURL(); //gives relative path of the sites default skin folder
echo Mage::getBaseURL(); //gives relative path of the site
echo...
read more
