Created
September 14, 2016 14:56
-
-
Save CB9TOIIIA/33f2ada0440c1eca22bbd053a249dbbb to your computer and use it in GitHub Desktop.
API joomla
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// API | |
$mainframe = JFactory::getApplication(); | |
$document = JFactory::getDocument(); | |
// Assign paths | |
$sitePath = JPATH_SITE; | |
$siteUrl = JURI::root(true); | |
// Requests | |
$option = JRequest::getCmd('option'); | |
$view = JRequest::getCmd('view'); | |
$layout = JRequest::getCmd('layout'); | |
$page = JRequest::getCmd('page'); | |
$secid = JRequest::getInt('secid'); | |
//$catid = JRequest::getInt('catid'); | |
$catid=JRequest::getVar( 'catid','' ); | |
$itemid = JRequest::getInt('Itemid'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment