Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $catid = JRequest::getInt('catid'); echo $catid; ?>
- $app = Jfactory::getApplication();
- $input=$app->input;
- if ($input->getCmd('option')=='com_content'
- && $input->getCmd('view')=='article' ){
- $cmodel = JModelLegacy::getInstance('Article', 'ContentModel');
- $catid = $cmodel->getItem($app->input->get('id'))->catid;
- }
- $a = JFactory::getApplication();
- $input=$a->input;
- $catId = $input->getCmd('id');
- $view = $input->getCmd('view');
- $layout = $input->getCmd('layout');
- <?php print_r($this); ?>
- <?php print_r(get_defined_vars()); ?>
- $input=Jfactory::getApplication()->input;
- if($input->getCmd('option')=='com_content'
- && $input->getCmd('view')=='article' ){
- $db=JFactory::getDbo();
- $db->setQuery('select catid from #__content where id='.$input->getInt('id'));
- $catid=$db->loadResult();
- }
- <?php echo $this->item->catid;?>
Add Comment
Please, Sign In to add comment