Skip to content

Instantly share code, notes, and snippets.

@imarklee
Created May 13, 2014 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imarklee/5266c133f2cef30ebe32 to your computer and use it in GitHub Desktop.
Save imarklee/5266c133f2cef30ebe32 to your computer and use it in GitHub Desktop.
Retrieve EasyBlog Category title
<?php
require_once(JPATH_ROOT.'/components/com_easyblog/helpers/helper.php');
$id = JRequest::getInt('id');
$view = JRequest::getWord('view');
if ($view == 'categories' && $id) {
$category = EasyBlogHelper::getTable('Category', 'EasyBlogTable');
$category->load($id);
echo $category->title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment