JRoute::_( 'index.php?option=com_user&view=login' );
JURI::base();
JPATH_ADMINISTRATOR The path to the administrator folder.
JPATH_BASE The path to the installed Joomla! site.
JPATH_CACHE The path to the cache folder.
JPATH_COMPONENT The path to the current component being executed.
JPATH_COMPONENT_ADMINISTRATOR The path to the administration folder of the current component being executed.
JPATH_COMPONENT_SITE The path to the site folder of the current component being executed.
JPATH_CONFIGURATION The path to folder containing the configuration.php file.
JPATH_INSTALLATION The path to the installation folder.
JPATH_LIBRARIES The path to the libraries folder.
JPATH_PLUGINS The path to the plugins folder.
JPATH_ROOT The path to the installed Joomla! site.
JPATH_SITE The path to the installed Joomla! site.
JPATH_THEMES The path to the templates folder.
JPATH_XMLRPC The path to the XML-RPC Web service folder.(1.5 only)
Language:
JLanguage::load($extension= 'joomla'
$basePath=JPATH_BASE
$lang=null
$reload=false)
(http://docs.joomla.org/JLanguage::load/1.5)
Add script:
// Add a reference to a Javascript file
// The default path is 'media/system/js/'
JHTML::script($filename, $path, $mootools);
// Add a reference to a CSS file
// The default path is 'media/system/css/'
JHTML::stylesheet($filename, $path);
If your script requires Mootools, include the line:
JHTML::_("behavior.mootools");
$document =& JFactory::getDocument();
$document->addScript($url);
$document->addStyleSheet($url);
(http://docs.joomla.org/Adding_JavaScript_and_CSS_to_the_page)
Query:
$db =& JFactory::getDBO();
$db->setQuery($query, 0, $items);
$rows = $db->loadObjectList();
User:
$user =& JFactory::getUser();
$aid = $user->get('aid', 0);
ini_set:
ini_set('max_execution_time', 180);
ini_set('post_max_size', '64M');
ini_set('memory_limit', '64M');
Xem vị trí các module trong Joomla:
Trên url thêm ?tp=1
Không có nhận xét nào:
Đăng nhận xét