Hotaru Docs

 [həʊdɒks]

Function Reference/getCatName

Description

Returns the category name for a given category id or safe name.

Usage

<?php $h->getCatName( $cat_id, $cat_safe_name ) ?>

Parameters

$cat_id | integer $cat_safe_name | string

Return Values

a urldecoded string

Examples

<?php
     $cat_name = $h->getCatName(5);
     echo $cat_name;    
?>

Source File

getCatName() is located in content/hotaru.php which calls the category.php file from the LIBS folder.

Related