Jump to content

display subcategories.


radhaumashankar

Recommended Posts

hi guys,

 

public static function getCategoryName($id){

$category = new Category ($id,Context::getContext()->language->id);

return $category->name;

}

 

through this code in controller.php , i managed to display the category name by specific id.

but how to modify it to display even sub categories in it.

 

i also want it to link to category page.

 

any additions to this .

Edited by radhaumashankar (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...