Skip to content

Instantly share code, notes, and snippets.

@scullygroup
Created January 5, 2009 22:04
Show Gist options
  • Save scullygroup/43555 to your computer and use it in GitHub Desktop.
Save scullygroup/43555 to your computer and use it in GitHub Desktop.
<?php
$id = JRequest::getVar( 'id', 0 );
$content = JTable::getInstance('content');
$content->load($id);
$cat_id = $content->catid;
$category = JTable::getInstance('category');
$category->load($cat_id);
$category_title = $category->title;
echo " the page category is " . $category_title;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment